sijie commented on a change in pull request #6077: Support delete inactive
topic when subscriptions caught up
URL: https://github.com/apache/pulsar/pull/6077#discussion_r367987983
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java
##########
@@ -1586,19 +1594,34 @@ public long getBacklogSize() {
return ledger.getEstimatedBacklogSize();
}
- public boolean isActive() {
+ public boolean isActive(InactiveTopicDeleteMode deleteMode) {
+ switch (deleteMode) {
+ case delete_when_no_subscriptions:
+ if (!subscriptions.isEmpty()) {
+ return true;
+ }
Review comment:
break here?
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services