Technoboy- opened a new pull request, #17033:
URL: https://github.com/apache/pulsar/pull/17033

   ### Motivation
   
   When there are many partitioned topics under a namespace, deleting the 
namespace forcibly will fail, because many requests update ns policies 
simultaneously and cause the metadata store throws BadVersionException.
   
   See `internalRemovePartitionsAuthenticationPoliciesAsync`
   
https://github.com/apache/pulsar/blob/374b3a18155cba33c4b4cfdb18c8119487be565e/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java#L612-L629
   
   
https://github.com/apache/pulsar/blob/374b3a18155cba33c4b4cfdb18c8119487be565e/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java#L704-L714
   
   When deleting the namespace, there is no need to update namespace policies, 
we can delete the namespace zk node in the end. 
   
https://github.com/apache/pulsar/blob/374b3a18155cba33c4b4cfdb18c8119487be565e/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java#L363-L381
   
   
   ### Documentation
   
   - [x] `doc-not-needed` 
   (Please explain why)
   


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