Fix all threads will get stuck when deleting the namespace
@@ -227,7 +227,8 @@ public abstract class NamespacesBase extends AdminResource {
boolean isEmpty;
List<String> topics;
try {
- topics = pulsar().getNamespaceService().getListOfPersistentTopics(namespaceName).join();
+ topics = pulsar().getNamespaceService().getListOfPersistentTopics(namespaceName)
+ .get(config().getZooKeeperOperationTimeoutSeconds(), TimeUnit.SECONDS);
topics.addAll(getPartitionedTopicList(TopicDomain.persistent));
topics.addAll(getPartitionedTopicList(TopicDomain.non_persistent));
isEmpty = topics.isEmpty();
