aymkhalil commented on PR #19097:
URL: https://github.com/apache/pulsar/pull/19097#issuecomment-1410930325

   > FWIW I don't think this change alone can completely prevent the topic 
creation during ns deletion: one can sync the policy and get the latest one, 
then ns deletion starts, then we create a topic - there is no 
locking/distributed locking for these operations. It might reduce frequency of 
the problem occurrence.
   
   +1. If fact, any "read" based solution to achieve consistency will be best 
effort only. I don't see how it could be solved for good without conditional 
writes which are not well supported. For example, in ZK the setData API does 
not support something like "fail if any version exists" but also there will be 
need to coordinate updates because the metadata for policy and topic (managed 
ledger) are under different nodes. 
   
   So, I couldn't find an easy way to do it that fits in the scope/purpose of 
this patch...
   
   


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