Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-7565

Add status RESTARTING to WS /api/system/status

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5
    • Component/s: Web API
    • Labels:

      Description

      Since addition of support for production restart in WS /api/system/restart, no change has been made to WS /api/system/status to indicate that the restart request has been taken into account and is ongoing.

      In fact, at first, this was not an issue because the WS /api/system/status would almost instantly go into "DOWN" status.

      Unfortunately, since the Compute Engine got its own JVM, the delay between the call to the /api/system/restart and the restart of the Web Server JVM has increased a lot (because the CE's JVM is shutdown first and only then is the WebServer). In the meantime, response from the WS /api/system/status is still "UP" which is confusing (and a problem for the UI, see SONAR-7558).

      As a consequence, WS /api/system/restart should respond "RESTARTING" as soon as a call to /api/system/restart has been made. No error should be raised if /api/system/restart is called and status is already "RESTARTING".

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sebastien.lesaint Sebastien Lesaint
              Reporter:
              sebastien.lesaint Sebastien Lesaint
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: