poorbarcode commented on code in PR #21853:
URL: https://github.com/apache/pulsar/pull/21853#discussion_r1444334130
##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/PatternMultiTopicsConsumerImpl.java:
##########
@@ -99,13 +113,48 @@ public static NamespaceName
getNameSpaceFromPattern(Pattern pattern) {
return TopicName.get(pattern.pattern()).getNamespaceObject();
}
+ /**
+ * This method will be called after the {@link TopicListWatcher}
reconnected after enabled {@link TopicListWatcher}.
+ */
+ private void recheckTopicsChangeAfterReconnect() {
+ // Skip if closed or the task has been cancelled.
+ if (getState() == State.Closing || getState() == State.Closed) {
+ return;
+ }
+ // Do check.
+ recheckTopicsChange().whenComplete((ignore, ex) -> {
Review Comment:
Yes, it will
--
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]