Skip to content

Commit

Permalink
address PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmarion committed Jan 14, 2025
1 parent 8657cc3 commit 0d0a9cd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1062,9 +1062,9 @@ public synchronized ZookeeperLockChecker getTServerLockChecker() {
// because that client could be closed, and its ZooSession also closed
// this needs to be fixed; TODO https://github.com/apache/accumulo/issues/2301
var zk = info.getZooKeeperSupplier(ZookeeperLockChecker.class.getSimpleName()).get();
this.zkLockChecker = new ZookeeperLockChecker(
new ZooCache(zk, Optional.empty(), ZooUtil.getRoot(getInstanceID())), getZooKeeperRoot(),
getServerPaths());
String zkRoot = getZooKeeperRoot();
this.zkLockChecker = new ZookeeperLockChecker(new ZooCache(zk, Optional.empty(), zkRoot),
zkRoot, getServerPaths());
}
return this.zkLockChecker;
}
Expand Down

0 comments on commit 0d0a9cd

Please sign in to comment.