Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-121254

Sidecar must not retry restart if failed to start at first attempt

Details

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

       

      Attachments

        Activity

          People

            joshua.chong Joshua Chong
            andre.oliveira André Ricardo Barreto de Oliveira
            Kiyoshi Lee Kiyoshi Lee
            Wade Cao Wade Cao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              2 years, 28 weeks, 6 days ago
              Development End Date:
              Development Start Date:

              Packages

                Version Package
                7.3.10 DXP FP1
                7.3.10.1 DXP SP1
                7.3.6 CE GA7
                7.3.X
                7.4.13 DXP GA1
                Master