yx9o commented on code in PR #11643:
URL: https://github.com/apache/rocketmq/pull/11643#discussion_r4771282741


##########
client/src/main/java/org/apache/rocketmq/client/impl/consumer/DefaultMQPushConsumerImpl.java:
##########
@@ -305,7 +305,10 @@ public void pullMessage(final PullRequest pullRequest) {
                 if (!pullRequest.isPreviouslyLocked()) {
                     long offset = -1L;
                     try {
-                        offset = 
this.rebalanceImpl.computePullFromWhereWithException(pullRequest.getMessageQueue());
+                        offset = 
this.offsetStore.readOffset(pullRequest.getMessageQueue(), 
ReadOffsetType.READ_FROM_STORE);
+                        if (offset == -1) {
+                            offset = pullRequest.getNextOffset();

Review Comment:
   This fallback also applies to `CONSUME_FROM_TIMESTAMP`. If the queue is 
still behind the configured timestamp at rebalance, reusing its old tail can 
deliver messages before the cutoff that arrived before the first pull; could we 
keep the timestamp lookup for this mode?



-- 
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]

Reply via email to