rdhabalia opened a new pull request, #15141:
URL: https://github.com/apache/pulsar/pull/15141

   ### Motivation
   Right now, broker gives below error while deleting empty namespace without 
any topic under the namespace but namespace was having partitioned-topic 
metadata.
   ```
   pulsar-admin namespaces delete prop/us-west/my-ns
   Cannot delete non empty namespace
   
   Reason: Cannot delete non empty namespace
   ```
   
   ### Modification
   It's because broker was incorrectly assuming topic existence by checking 
partitioned-topic metadata. delete-admin API cleans up partitioned-metadata 
after successfully deleting namespace and it it should not incorrectly depend 
on partitioned-metadata check. this issue is already fixed with forcefully 
delete-ns admin-api and delete-admin also needs the same fix.
   
   
   ### Result
   User can delete namespace after successfully deleting all topics under the 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to