You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/01/20 02:40:06 UTC

[GitHub] [rocketmq] ni-ze commented on a change in pull request #3659: [ISSUE #3585] [Part K] move execution of notifyMessageArriving() from ReputMessageService thread to PullRequestHoldService thread

ni-ze commented on a change in pull request #3659:
URL: https://github.com/apache/rocketmq/pull/3659#discussion_r772796555



##########
File path: broker/src/main/java/org/apache/rocketmq/broker/longpolling/PullRequestHoldService.java
##########
@@ -109,11 +109,48 @@ private void checkHoldRequest() {
         }
     }
 
+    @Override
+    protected void onWaitEnd() {
+        final int batch = 1000;
+        for (int i = 0; i < batch; i++) {
+            Runnable runnable = notifyList.poll();
+            if (runnable != null) {
+                runnable.run();

Review comment:
       if runnable.run() throw throwable,  the checkHoldRequest method in the below will not invoked.




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

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