You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/09/01 09:12:00 UTC

[GitHub] [pulsar] merlimat commented on issue #11866: Attempting to delete a namespace immediately after deleting all topics in that namespace raises `org.apache.zookeeper.KeeperException$NotEmptyException: KeeperErrorCode = Directory not empty`

merlimat commented on issue #11866:
URL: https://github.com/apache/pulsar/issues/11866#issuecomment-909558022


   The reason is probably related to the caching of metadata in brokers and that the the different requests are hitting different brokers. 
   
   When you delete all topics, when you get the 200 responses, all the topics are gone. That will trigger notification to all brokers to update their cached views. 
   
   If the the delete namespace ends up in a different broker, its cache might still not have been updated.
   
   There are some possible improvements there, but it can also be a bit dangerous to let some operations to bypass caches, as it could potentially lead to high load on Zookeeper.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org