ddanielr commented on code in PR #6077:
URL: https://github.com/apache/accumulo/pull/6077#discussion_r2728991449
##########
core/src/main/java/org/apache/accumulo/core/fate/zookeeper/ServiceLock.java:
##########
@@ -783,6 +784,22 @@ public static void deleteLock(ZooReaderWriter zk,
ServiceLockPath path)
}
+ public static void removeGCLock(ZooReaderWriter zoo, String path,
+ Predicate<HostAndPort> hostPortPredicate, Consumer<String>
messageOutput, Boolean dryRun)
+ throws KeeperException, InterruptedException {
+ var lockData = ServiceLock.getLockData(zoo.getZooKeeper(),
ServiceLock.path(path));
+ if (lockData != null) {
+ String lockContent = new String(lockData, UTF_8);
Review Comment:
Yes that would probably work. I'll look at making that change so we aren't
going down multiple lock removal paths again
--
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]