kevinrr888 commented on code in PR #5873:
URL: https://github.com/apache/accumulo/pull/5873#discussion_r2334320420
##########
core/src/main/java/org/apache/accumulo/core/lock/ServiceLock.java:
##########
@@ -547,7 +547,7 @@ public synchronized void unlock() throws
InterruptedException, KeeperException {
// Wait for the delete to happen on the server before exiting method
Timer start = Timer.startNew();
while (zooKeeper.exists(pathToDelete, null) != null) {
- Thread.onSpinWait();
Review Comment:
A potential further enhancement could be to onSpinWait for a certain, low
number of cycles, then sleep() instead if we exceed the max number of cycles
--
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]