xiaoyifang commented on code in PR #5769:
URL: https://github.com/apache/rocketmq/pull/5769#discussion_r1058071140


##########
client/src/main/java/org/apache/rocketmq/client/impl/consumer/ProcessQueue.java:
##########
@@ -102,6 +98,10 @@ public void cleanExpiredMsg(DefaultMQPushConsumer 
pushConsumer) {
                 log.error("getExpiredMsg exception", e);
             }
 
+            if (msg == null) {
+                break;

Review Comment:
   I think it should be ok.   
   
   in most cases , the rest of msgTreeMap should be empty or interrupted ,in 
these cases , break the loop is reasonable.
   
   in other cases ,the rest items can wait until the next clean 



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