kevinrr888 commented on code in PR #5873:
URL: https://github.com/apache/accumulo/pull/5873#discussion_r2334290645
##########
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:
Based on the code below the onSpinWait, this can take over 10 seconds, which
would cause very high CPU usage during this time
--
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]