ctubbsii commented on code in PR #5350:
URL: https://github.com/apache/accumulo/pull/5350#discussion_r1992465466


##########
server/base/src/main/java/org/apache/accumulo/server/conf/store/impl/ZooPropStore.java:
##########
@@ -85,33 +83,28 @@ public class ZooPropStore implements PropStore, 
PropChangeListener {
     } else {
       this.cache = new 
PropCacheCaffeineImpl.Builder(propLoader).forTests(ticker).build();
     }
-
     try {
-      var path = ZooUtil.getRoot(instanceId);
-      if (zrw.exists(path, propStoreWatcher)) {
-        log.debug("Have a ZooKeeper connection and found instance node: {}", 
instanceId);
+      if (zrw.exists("/", propStoreWatcher)) {

Review Comment:
   There should be very few places where "/" is used specifically. If we give 
it a name, it could be confusing, because it hides the obvious indicator that 
it exists only because paths always start with "/", and "/" refers to the top 
of the navigable hierarchy. Put behind a constant makes it confusing, I think.



-- 
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]

Reply via email to