Technoboy- commented on pull request #13337: URL: https://github.com/apache/pulsar/pull/13337#issuecomment-996589841
Hi , @shibd . Sorry for the late response. The root issue is that: when deleting namespace, the `deleteNamespaceBundleAsync` may execute before `systemTopic.deleteForcefully()`. In `deleteNamespaceBundleAsync`, it will check the namespace bundle, and find the system topic reader own the bundle then throw `Cannot delete non empty bundle`. If the two request execute orderly (`systemTopic.deleteForcefully()` -> `deleteNamespaceBundleAsync`), `systemTopic.deleteForcefully()` will close the reader first and then delete the topic . So https://github.com/apache/pulsar/blob/7f5b9740281c0f4a0ede8be93274cb60974a4ba7/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java#L560 will not contain the topic and no exception thrown. -- 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]
