mattisonchao commented on code in PR #16676:
URL: https://github.com/apache/pulsar/pull/16676#discussion_r924326044


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java:
##########
@@ -538,13 +545,13 @@ protected void 
internalDeleteNamespaceForcefully(AsyncResponse asyncResponse, bo
 
         FutureUtil.waitForAll(bundleFutures).thenCompose(__ -> 
internalClearZkSources()).handle((result, exception) -> {
             if (exception != null) {
-                if (exception.getCause() instanceof PulsarAdminException) {
-                    asyncResponse.resume(new 
RestException((PulsarAdminException) exception.getCause()));
-                    return null;
+                Throwable cause = 
FutureUtil.unwrapCompletionException(exception);
+                if (cause instanceof PulsarAdminException.ConflictException) {
+                    internalDeleteNamespaceForcefully(asyncResponse, 
authoritative);

Review Comment:
   And if it's a risk to use `metadata` thread do delete the namespace again?



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