EdColeman commented on code in PR #2569:
URL: https://github.com/apache/accumulo/pull/2569#discussion_r850801540


##########
server/base/src/main/java/org/apache/accumulo/server/init/Initialize.java:
##########
@@ -193,6 +198,38 @@ private boolean doInit(ZooReaderWriter zoo, Opts opts, 
VolumeManager fs,
     return true;
   }
 
+  private void initRequiredPropStoreZKPaths(final Opts opts, final 
ZooReaderWriter zoo,
+      final String instanceNamePath, final InstanceId instanceId) {
+
+    try {
+
+      zoo.putPersistentData(Constants.ZROOT, new byte[0], 
ZooUtil.NodeExistsPolicy.SKIP,
+          ZooDefs.Ids.OPEN_ACL_UNSAFE);
+      zoo.putPersistentData(Constants.ZROOT + Constants.ZINSTANCES, new 
byte[0],
+          ZooUtil.NodeExistsPolicy.SKIP, ZooDefs.Ids.OPEN_ACL_UNSAFE);
+
+      // setup instance name
+      if (opts.clearInstanceName) {
+        zoo.recursiveDelete(instanceNamePath, ZooUtil.NodeMissingPolicy.SKIP);
+      }
+
+      log.warn("INSTANCE PATH path: {}", instanceId);

Review Comment:
   removed altogether in 1a5c6cc055



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