You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "xdkxlk (via GitHub)" <gi...@apache.org> on 2023/09/15 09:51:16 UTC

[GitHub] [rocketmq] xdkxlk commented on a diff in pull request #7359: [ISSUE #7358] Optimize pull request hold service

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


##########
broker/src/main/java/org/apache/rocketmq/broker/longpolling/PullRequestHoldService.java:
##########
@@ -36,6 +36,8 @@ public class PullRequestHoldService extends ServiceThread {
     private final SystemClock systemClock = new SystemClock();
     protected ConcurrentMap<String/* topic@queueId */, ManyPullRequest> pullRequestTable =
         new ConcurrentHashMap<>(1024);
+    protected ConcurrentMap<String/* topic@queueId */, Long/* offset */> lastNotifyMaxOffset =

Review Comment:
   When deleting a topic or reducing the number of queues, the memory of lastNotifyMaxOffset may be leaked.



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