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


##########
solr/core/src/java/org/apache/solr/cli/RunExampleTool.java:
##########
@@ -1581,6 +1584,12 @@ Map<String, Object> startSolr(
     if (zkHost != null) {
       command.add("-z");
       command.add(zkHost);
+    } else if (cloudMode) {
+      // this node starts the embedded ZooKeeper, so pass on an explicitly 
configured port
+      Integer embeddedZkPort = SolrZkServer.getConfiguredClientPort();

Review Comment:
   🤖 Correction: the example code is now unchanged from main. `-e cloud` 
follows node 1's actual ZooKeeper, so an inherited setting works there, while 
`-e secure` still assumes the Solr port + 1000. Letting the examples own all 
their ports is proposed on SOLR-16124.



##########
solr/solr-ref-guide/modules/deployment-guide/pages/solr-control-script-reference.adoc:
##########
@@ -63,6 +63,7 @@ NOTE: If you have defined `ZK_HOST` in 
`solr.in.sh`/`solr.in.cmd` (see xref:zook
 
 When starting Solr in SolrCloud mode, if you do not define `ZK_HOST` in 
`solr.in.sh`/`solr.in.cmd` nor specify the `-z` option, then Solr will launch 
an embedded ZooKeeper server listening on the Solr port + 1000.
 For example, if Solr is running on port 8983, then the embedded ZooKeeper will 
listen on port 9983.
+To use a different port, set `SOLR_ZOOKEEPER_EMBEDDED_PORT` in 
`solr.in.sh`/`solr.in.cmd` (or the `-Dsolr.zookeeper.embedded.port` system 
property).

Review Comment:
   🤖 Correction: I dropped that guide sentence, since it was not accurate for 
`-e cloud`. Letting the examples own all their ports is proposed on SOLR-16124.



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