dlmarion commented on a change in pull request #2422:
URL: https://github.com/apache/accumulo/pull/2422#discussion_r840537393
##########
File path: server/base/src/main/java/org/apache/accumulo/server/util/ZooZap.java
##########
@@ -176,6 +178,25 @@ public void execute(String[] args) throws Exception {
}
+ if (opts.zapScanServers) {
+ String sserversPath = Constants.ZROOT + "/" + iid +
Constants.ZSSERVERS;
+ try {
+ List<String> children = zoo.getChildren(sserversPath);
+ for (String child : children) {
+ message("Deleting " + sserversPath + "/" + child + " from
zookeeper", opts);
+
+ var zLockPath = ServiceLock.path(sserversPath + "/" + child);
+ if (!zoo.getChildren(zLockPath.toString()).isEmpty()) {
+ if (!ServiceLock.deleteLock(zoo, zLockPath, "tserver")) {
Review comment:
No, this was a copy paste error. I'm going to modify it to call a
different `ServiceLock.deleteLock` method.
--
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]