keith-turner commented on code in PR #6077:
URL: https://github.com/apache/accumulo/pull/6077#discussion_r2728652029
##########
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:
Could the ServerServices code be used here to extract the address? Like
this code
https://github.com/apache/accumulo/blob/64741921c5f5a520dc99ae5d630753585f356662/server/monitor/src/main/java/org/apache/accumulo/monitor/Monitor.java#L443-L444
--
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]