DeerplayHub commented on issue #10955:
URL: https://github.com/apache/rocketmq/issues/10955#issuecomment-5563920837

   @yx9o 我重新看了一下 #5466,我认为它和 #10955 的问题并没有直接关联。
   
   #5466 修复的是 ProcessQueue 创建后 locked 状态与实际 Broker lock 状态不一致的问题:
   
   if (isOrder && !this.lock(mq)) {
       continue;
   }
   
   ProcessQueue pq = new ProcessQueue();
   pq.setLocked(true);
   
   而 #10955 的核心现象是:
   
   computePullFromWhere() 得到 offset = 9
   第一次 Pull 时使用 offset = 10
   导致 offset=9 对应的消息从未被 Consumer pull 到。
   
   因此我认为需要重点分析的是:
   RebalanceImpl
   → computePullFromWhere()
   → PullRequest.nextOffset
   → PullMessageService
   → pullMessage()
   
   在这个过程中 nextOffset 为什么从 9 变成了 10。


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