GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — [improve][test] Add durable broker and bookie process-failure tests by codelipenghui · Pull Request #27042 · apache/pulsar Conversation
Contributor
MotivationGraceful container stops and in-JVM service restarts do not exercise abrupt process failure with the original storage intact. The shared integration cluster also disables BookKeeper journal sync by default, so those settings are not suitable for an explicit durability regression test. Add end-to-end coverage that checks confirmed publishes and subscription recovery after broker/bookie process crashes, while testing long process pauses separately. Modifications
These tests cover process crashes and pauses, not power loss or disk faults: the Docker host and page cache remain alive. Verifying this change
This change adds tests. Local validation passed with all four cases executed, zero failures/skips, and test retries disabled: PULSAR_TEST_IMAGE_NAME=apachepulsar/java-test-image:latest ./gradlew \
:tests:integration:integrationTest \
--tests 'org.apache.pulsar.tests.integration.messaging.ProcessFailureDurabilityTest' \
-PtestRetryCount=0 -PtestFailFast=false quickCheck --console=plain
Does this pull request potentially affect one of the following parts:
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsAdd journal-synced, same-container SIGKILL recovery and long-pause integration cases with confirmed-message and subscription-state verification. Assisted-by: DeepSeek Harness (gpt-6.1-sol) Document the implementation-specific persisted-ack prerequisites, cap client reconnect backoff at two seconds, and run the durability class last in the messaging suite. Assisted-by: DeepSeek Harness (gpt-6.1-sol)
merlimat
reviewed
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice addition. We have nothing today that kills or pauses the processes while keeping their storage, and the oracle (only receipt-confirmed sends/acks are asserted, plus a frozen audit cursor) is careful about uncertain outcomes. Two things before approving:
Minor: the README section repeats most of the class comments. I'd keep the run command and the "process crash, not power loss" scope note there and move the rationale into the class Javadoc.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This puts four fault-injection cases (broker restarts, 35 s pauses, 300 s timeouts each) into the per-PR Messaging job, which already runs ~36-43 min out of 60. A dedicated suite file and matrix entry might be a better home. Let's see the CI timing first.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: most of this section repeats the comments in
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
lhotari
reviewed
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for adding real process-crash and pause coverage for the broker and bookie; the frozen audit subscription and the cold-replay check are a good way to stop live acks from masking lost cursor state. I ran the class locally on this head: all four cases pass. With the
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [QUALITY] an ack can be recorded as receipt-confirmed although it was only written to a closing connection
Scenario: the broker is killed while the ack worker is in that window. The window is a few instructions wide, so this should be rare. If it shows up as a flake, an option is to treat only acks that completed while the same connection was verified as confirmed, or to fix the client to fail the future when the connection is gone. A short comment next to the
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersAt least 1 approving review is required to merge this pull request. Uh oh!
There was an error while loading. Please reload this page. AssigneesLabelsProjectsDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | ||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |