BILLYisavailable opened a new pull request, #11643:
URL: https://github.com/apache/rocketmq/pull/11643
### Which Issue(s) This PR Fixes
- Fixes #10955
### 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_OFFSET` to 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 on
`develop` at `19352a246`, 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?
- The first-pull and lookup-retry regressions fail before the fix: the pull
request uses offset 10 instead of 9.
- All 5 new tests pass: missing offset, newer/smaller committed offsets,
lookup failure, and retry after lookup failure.
- Related client tests: 65 tests, 0 failures, 0 errors, 1 existing skipped
test. Checkstyle and SpotBugs pass.
```sh
mvn -pl client -am \
-Dtest=OrderedConsumerOffsetTest,DefaultMQPushConsumerImplTest,RebalancePushImplTest,RemoteBrokerOffsetStoreTest
\
-Dsurefire.failIfNoSpecifiedTests=false \
-Djacoco-maven-plugin.version=0.8.12 test
```
Tested with JDK 17 and Maven 3.9.11. The command-line JaCoCo override
supports JDK 17; the project POM is unchanged.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]