wangjialing218 commented on a change in pull request #8806:
URL: https://github.com/apache/pulsar/pull/8806#discussion_r534826096
##########
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:
Added test for force delete namespace
----------------------------------------------------------------
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:
[email protected]