massakam commented on a change in pull request #5288: [pulsar-broker] Close previous dispatcher when subscription type changes URL: https://github.com/apache/pulsar/pull/5288#discussion_r329348304
########## File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/service/AbstractDispatcherMultipleConsumers.java ########## @@ -64,6 +64,10 @@ public synchronized boolean canUnsubscribe(Consumer consumer) { return consumerList.size() == 1 && consumerSet.contains(consumer); } + public boolean isClosed() { + return IS_CLOSED_UPDATER.get(this) == TRUE; Review comment: Fixed. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services