keith-turner commented on code in PR #5423:
URL: https://github.com/apache/accumulo/pull/5423#discussion_r2017756965
##########
core/src/main/java/org/apache/accumulo/core/clientImpl/ClientTabletCacheImpl.java:
##########
@@ -692,64 +640,136 @@ private void requestTabletHosting(ClientContext context,
}
}
- private void lookupTablet(ClientContext context, Text row, boolean retry,
- LockCheckerSession lcSession) throws AccumuloException,
AccumuloSecurityException,
- TableNotFoundException, InvalidTabletHostingRequestException {
+ private static class ReferenceCountedLock {
+ final Lock lock = new ReentrantLock();
+ int refCount;
Review Comment:
was assuming it was modified in a synchronized block or a lock in the maps
compute function and would not need to be volatile, but I need to verify that
assumption
--
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]