keith-turner commented on code in PR #5857:
URL: https://github.com/apache/accumulo/pull/5857#discussion_r2349533150
##########
core/src/main/java/org/apache/accumulo/core/lock/ServiceLockSupport.java:
##########
@@ -160,6 +167,21 @@ public ServiceLockWatcher(Type server, Supplier<Boolean>
shutdownComplete,
this.lostLockAction = lostLockAction;
}
+ @Override
+ public boolean isLocked() {
+ return lockAcquired.get();
+ }
+
+ @Override
+ public void acquiredLock() {
+ lockAcquired.getAndSet(true);
+ }
+
+ @Override
+ public void failedToAcquireLock(Exception e) {
+ log.debug("Failed to acquire lock", e);
Review Comment:
Should this set lock acquired to false?
--
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]