Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.3.X, Master
-
7.3.x
-
Committed
-
4
-
Search|S03Sprint 22|9.21-10.30, Search|S04Sprint 1|11.2-11.23
Description
Background
The restart feature is intended to quietly recover an ongoing healthy sidecar that was accidentally or unexpectedly shutdown for some reason. It is not intended for system startup to indefinitely retry a first launch under unhealthy and likely unrecoverable conditions.
Steps to reproduce
Start a regular Elasticsearch server, and then a Liferay with Sidecar, on the same port.
(Pick one: change Elasticsearch config to start on port 9201, or, change Sidecar settings to start on port 9200.)
Expected and observed: org.elasticsearch.bootstrap.StartupException: BindHttpException[Failed to bind to [::1]:9201]; nested: BindException[Address already in use];
Expected: Sidecar does not try again; Elasticsearch Connector fails to initialize.
Observed: Infinite retries of "Restarting sidecar Elasticsearch process".