drpmma commented on code in PR #7359:
URL: https://github.com/apache/rocketmq/pull/7359#discussion_r1335341843


##########
broker/src/main/java/org/apache/rocketmq/broker/longpolling/PullRequestHoldService.java:
##########
@@ -122,6 +134,12 @@ public void notifyMessageArriving(final String topic, 
final int queueId, final l
     public void notifyMessageArriving(final String topic, final int queueId, 
final long maxOffset, final Long tagsCode,
         long msgStoreTime, byte[] filterBitMap, Map<String, String> 
properties) {
         String key = this.buildKey(topic, queueId);
+
+        // record the maxOffset if notify from message store
+        if (msgStoreTime > 0) {
+            this.lastNotifyMaxOffsetCache.put(key, maxOffset);

Review Comment:
   Should we examine whether the incoming maxOffset exceeds the value of the 
cache?
   
   



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