janhoy opened a new pull request, #5389: URL: https://github.com/apache/solr/pull/5389
https://issues.apache.org/jira/browse/SOLR-18336 https://issues.apache.org/jira/browse/SOLR-18665 Replaces the two draft PRs #4710 (SOLR-18336) and #5368 (SOLR-18665) with one script-only change. - `bin/solr start` and `bin\solr.cmd start` no longer call the node over HTTP to see that it has started. Background starts enable a new `state` Jetty module (the stock `StateLifeCycleListener`), and the scripts wait for `STARTED` in `SOLR_LOGS_DIR/solr-<port>.state`. - Fixes SOLR-18336: the Windows wait covers only the node being started, not every node with a PID file. - Fixes SOLR-18665 follow-up: the wait no longer fails when the node is not reachable on localhost, such as with a TLS certificate issued for another host name. - A `FAILED` state, such as a port conflict, ends the wait at once instead of after `SOLR_START_WAIT`. - Both scripts print the same messages `bin/solr` has always printed. On failure `solr.cmd` now also shows the last 30 lines of `solr.log`, using PowerShell. - No Java changes. The start wait no longer launches a second JVM. Notes for review: - The state file is in the logs dir because the Security Manager policy does not let the node write to `SOLR_PID_DIR`. - Jetty reports `STARTED` even if the CoreContainer failed to load, so `start` succeeds in that case, as it did before #5358. - The Windows success line has no `(pid=N)` yet; #5348 resolves the PID and conflicts with this PR in the same few lines of `solr.cmd`. Tests: re-enables `SslTest.useDifferentHostnameWhenNotCheckingPeerName` and `SslTest.useDifferentHostnameWithCurlResolve`, and drops the `_default` configset wait in `ZkTest`. Full CATS suite passes on macOS; `SslTest`, `ZkTest` and `BasicAuthTest` pass on Windows. -- 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]
