keith-turner commented on issue #5724:
URL: https://github.com/apache/accumulo/issues/5724#issuecomment-3151998247

   > What code exactly is the ZK code that is used to reserve a table name? 
   
   These two functions 
[TableMapping.put(...)](https://github.com/apache/accumulo/blob/0863c9e12498930e7052b6eff4cef246c05b9780/core/src/main/java/org/apache/accumulo/core/util/tables/TableMapping.java#L61)
 and 
[TableMapping.rename()](https://github.com/apache/accumulo/blob/0863c9e12498930e7052b6eff4cef246c05b9780/core/src/main/java/org/apache/accumulo/core/util/tables/TableMapping.java#L108)
 should atomically reserve a table name using Zookeeper mechanism.  Also those 
two functions are the first thing called after getting the lock.  So if we can 
test that in the face concurrency they always allow only one thread to get a 
name and all other threads throw an exception, then we can remove the in memory 
lock.  


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