You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/12/03 06:56:19 UTC

[GitHub] [pulsar] zymap commented on a change in pull request #8806: fix force delete namespace did not delete all topics of the namespace

zymap commented on a change in pull request #8806:
URL: https://github.com/apache/pulsar/pull/8806#discussion_r534757877



##########
File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java
##########
@@ -411,9 +411,12 @@ protected void internalDeleteNamespaceForcefully(AsyncResponse asyncResponse, bo
             // firstly remove all topics including system topics
             if (!topics.isEmpty()) {
                 for (String topic : topics) {
-                    pulsar().getBrokerService().getTopicIfExists(topic).whenComplete((topicOptional, ex) -> {
-                        topicOptional.ifPresent(tp -> futures.add(tp.deleteForcefully()));
-                    });
+                    try {

Review comment:
       Could you please add a test for it?




----------------------------------------------------------------
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:
users@infra.apache.org