janhoy commented on code in PR #1923: URL: https://github.com/apache/solr/pull/1923#discussion_r1325979468
########## solr/core/src/java/org/apache/solr/cli/RunExampleTool.java: ########## @@ -436,7 +439,10 @@ protected void runCloudExample(CommandLine cli) throws Exception { boolean prompt = !cli.hasOption("noprompt"); int numNodes = 2; - int[] cloudPorts = new int[] {8983, 7574, 8984, 7575}; + int defaultPort = + Integer.parseInt( + cli.getOptionValue('p', SystemUtils.getEnvironmentVariable("SOLR_PORT", "8983"))); + int[] cloudPorts = new int[] {defaultPort, defaultPort + 1, defaultPort + 2, defaultPort + 3}; Review Comment: Yep. Of course this will ruin tutorials out there that assume something. So perhaps we should make the default as they were, but if `SOLR_HOST` or `-p` is given, we override those defaults like here? -- 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: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org