You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "HScarb (via GitHub)" <gi...@apache.org> on 2023/05/05 03:17:10 UTC

[GitHub] [rocketmq] HScarb commented on pull request #6682: [ISSUE #6681] fix: fix pop retry message notification

HScarb commented on PR #6682:
URL: https://github.com/apache/rocketmq/pull/6682#issuecomment-1535649327

   > Pop retry message has already been notified in PopReviveService#reviveRetry
   > 
   > ```
   > brokerController.getPopMessageProcessor().notifyMessageArriving(
   >     KeyBuilder.parseNormalTopic(popCheckPoint.getTopic(), popCheckPoint.getCId()),
   >     popCheckPoint.getCId(),
   >     -1
   > );
   > brokerController.getNotificationProcessor().notifyMessageArriving(
   >     KeyBuilder.parseNormalTopic(popCheckPoint.getTopic(), popCheckPoint.getCId()), -1);
   > ```
   
   In `PopReviveService#reviveRetry`, it only notifies consumers who subscribe for all queues (queue ID is -1).
   
   But in the case which `popShareQueueNum >= consumerNum - 1`, the consumer will only subscribe to some of the queues.  https://github.com/apache/rocketmq/blob/6f6032e9eb812d42a67bea3cdb02cf4ef6e7f6c3/broker/src/main/java/org/apache/rocketmq/broker/processor/QueryAssignmentProcessor.java#L236-L270
   In this case, pollingMap only contains polling requests of specific queues, and notifying -1 queueID will not wake up the polling requests.
   


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org