janhoy commented on code in PR #5358:
URL: https://github.com/apache/solr/pull/5358#discussion_r4615740394
##########
solr/bin/solr:
##########
@@ -513,6 +513,21 @@ function run_tool() {
return $?
} # end run_tool function
+# Wait for the node on $SOLR_PORT_LISTEN to answer, as bin/solr.cmd does.
Jetty binds its
+# connectors before the Solr webapp starts, so a listening port is no proof of
readiness.
+function wait_for_solr_ready() {
+ local status_output
+ if status_output=$(run_tool status -p "$SOLR_PORT_LISTEN" --max-wait-secs
"$SOLR_START_WAIT" 2>&1); then
Review Comment:
The `solr assert --started` calls the same `StatusTool.waitToSeeSolrUp` as
the status tool, but keeping it identical to what `solr.cmd` uses.
--
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]