mattisonchao commented on a change in pull request #14059:
URL: https://github.com/apache/pulsar/pull/14059#discussion_r802533028
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java
##########
@@ -221,12 +222,20 @@ protected void internalDeleteNamespace(AsyncResponse
asyncResponse, boolean auth
boolean isEmpty;
List<String> topics;
try {
+ int timeoutSeconds =
config().getZooKeeperOperationTimeoutSeconds();
topics =
pulsar().getNamespaceService().getListOfPersistentTopics(namespaceName)
- .get(config().getZooKeeperOperationTimeoutSeconds(),
TimeUnit.SECONDS);
- topics.addAll(getPartitionedTopicList(TopicDomain.persistent));
- topics.addAll(getPartitionedTopicList(TopicDomain.non_persistent));
+ .get(timeoutSeconds, TimeUnit.SECONDS);
Review comment:
This is not the focus of this refactoring, it just affects here. And
will keep the original code logic.
--
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]