Repository navigation
[ISSUE #10955] Preserve the initial offset for the first orderly pull - #11643
Open
BILLYisavailable wants to merge 2 commits into
Open
BILLYisavailable wants to merge 2 commits into
BILLYisavailable wants to merge 2 commits into
Conversation
Replace verifyZeroInteractions with verifyNoInteractions so OrderedConsumerOffsetTest compiles with the Mockito version resolved by Bazel. The offset lookup failure test continues to assert that no pull API calls occur. Validation: Maven client regression suite passes (65 tests, 0 failures, 0 errors, 1 existing skip), including all 5 ordered offset tests; Checkstyle and SpotBugs pass. Tested with JDK 17, Maven 3.9.11, and the command-line JaCoCo 0.8.12 override.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Which Issue(s) This PR Fixes
Brief Description
Issue #10955 has remained open since 2026-08-18, with no linked implementation PR at the time of this submission. It concerns silent omission of newly produced messages during orderly-consumer startup, affecting the core delivery path.
When no committed offset exists, rebalance resolves
CONSUME_FROM_LAST_OFFSETto the queue's current end. The first orderly pull resolves the policy again: if the queue has grown from 9 to 10, it starts at 10 and skips the message at offset 9. The added regression reproduces this ondevelopat19352a246, with the process queue already locked.Re-read the committed offset before the first pull, retaining the initial pull offset only when the offset store reports no committed offset. Both newer and smaller committed offsets still take precedence; lookup errors still defer the pull. This differs from #5466, which sets the process queue's locked flag but leaves this second policy evaluation in place.
How Did You Test This Change?
mvn -pl client -am \ -Dtest=OrderedConsumerOffsetTest,DefaultMQPushConsumerImplTest,RebalancePushImplTest,RemoteBrokerOffsetStoreTest \ -Dsurefire.failIfNoSpecifiedTests=false \ -Djacoco-maven-plugin.version=0.8.12 testTested with JDK 17 and Maven 3.9.11. The command-line JaCoCo override supports JDK 17; the project POM is unchanged.