yx9o commented on code in PR #9116:
URL: https://github.com/apache/rocketmq/pull/9116#discussion_r1984317175
##########
broker/src/main/java/org/apache/rocketmq/broker/client/DefaultConsumerIdsChangeListener.java:
##########
@@ -125,4 +145,27 @@ private void notifyConsumerChange() {
public void shutdown() {
this.scheduledExecutorService.shutdown();
}
+
+ private static class NotifyTaskControl {
+
+ private final AtomicBoolean interrupted = new AtomicBoolean(false);
+
+ private final List<Channel> channels;
Review Comment:
Ensure that when a new notification task arrives, the channels in the old
notification task are no longer notified.
--
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]