janhoy commented on code in PR #2391:
URL: https://github.com/apache/solr/pull/2391#discussion_r3234373446


##########
solr/core/src/java/org/apache/solr/core/ZkContainer.java:
##########
@@ -192,13 +196,62 @@ public void initZooKeeper(final CoreContainer cc, 
CloudConfig config) {
             e);
       }
     } else if (zkServerEnabled) {
-      // Old school ZooKeeperServerMain being used under the covers (bin/solr 
-c without ZK_HOST).
-      zkServer =
-          SolrZkServer.createAndStart(config.getZkHost(), solrHome, 
config.getSolrHostPort());
+      try {
+        final Path zkDataHome =
+            Path.of(
+                EnvUtils.getProperty(
+                    "solr.zookeeper.server.datadir", 
solrHome.resolve("zoo_data").toString()));

Review Comment:
   Do we normally keep constants like this inline or do we have somewhere we 
try to keep all sysprop-names for e.g. zookeeper together in one place?



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to