ddanielr commented on code in PR #5857:
URL: https://github.com/apache/accumulo/pull/5857#discussion_r2389532543
##########
core/src/main/java/org/apache/accumulo/core/lock/ServiceLockSupport.java:
##########
@@ -138,17 +138,19 @@ public boolean isLockAcquired() {
return acquiredLock;
}
- public boolean isFailedToAcquireLock() {
- return failedToAcquireLock;
+ public boolean cannotRetryLocking() {
+ return acquiredLock && !failedToAcquireLock;
}
}
/**
* Lock Watcher used by non-HA services
*/
- public static class ServiceLockWatcher implements LockWatcher {
+ public static class ServiceLockWatcher implements AccumuloLockWatcher {
+ private final AtomicBoolean lockAcquired = new AtomicBoolean(false);
Review Comment:
Removed in d5616fa
--
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]