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


##########
solr/packaging/build.gradle:
##########
@@ -238,6 +238,7 @@ task integrationTests(type: BatsTask) {
   def integrationTestOutput = "$buildDir/test-output"
   def solrHome = "$integrationTestOutput/solr-home"
   def solrTestFailuresDir = "$integrationTestOutput/failure-snapshots"
+  def solrPort = new Random().nextInt(10000, 50000)

Review Comment:
   That worked, except it picked 648xx once, and then solr complained that the 
embedded ZK on +1000 could not start. So I now use a while loop until we get an 
acceptable port. Then I still add +1 and +2 to the other nodes, since else we'd 
need to factor out the port finder as a function and I don't know how that 
looks like in gradle, and you'd still not be guaranteed unique ports, since it 
could suggest the same port twice :) Think this is about 100x better than what 
we had...



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

Reply via email to