Technoboy- commented on a change in pull request #13337:
URL: https://github.com/apache/pulsar/pull/13337#discussion_r780999370



##########
File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java
##########
@@ -262,29 +262,39 @@ protected void internalDeleteNamespace(AsyncResponse 
asyncResponse, boolean auth
 
         // remove from owned namespace map and ephemeral node from ZK
         final List<CompletableFuture<Void>> futures = Lists.newArrayList();
-        try {
-            // remove system topics first.
-            if (!topics.isEmpty()) {
-                for (String topic : topics) {
-                    
pulsar().getBrokerService().getTopicIfExists(topic).whenComplete((topicOptional,
 ex) -> {
-                        topicOptional.ifPresent(systemTopic -> 
futures.add(systemTopic.deleteForcefully()));
+        // remove system topics first.
+        if (!topics.isEmpty()) {
+            for (String topic : topics) {
+                
pulsar().getBrokerService().getTopicIfExists(topic).whenComplete((topicOptional,
 ex) -> {

Review comment:
       Sorry for the late response.
   Yes, I have fixed this by calling adminClient. Thanks for reveiwing.




-- 
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]


Reply via email to