Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-7668

Restart from Admin Center race condition on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5-SNAPSHOT, 5.5, 5.6.0-HF20, 5.7.1
    • Fix Version/s: 8.10
    • Component/s: Update Center
    • Environment:
      Windows

      Description

      When restarting from the admin center, Nuxeo runs a launcher process with "restartbg".
      The launcher tries to stop the server cleanly, and if the process sticks around for too long (STOP_MAX_WAIT) will call processManager.kill.
      The ProcessManager class is the one from jodconverter. On Windows, it calls the taskkill command with a "/t" parameter, this terminates a process and all its children.
      Unfortunately, in this case, the launcher process is itself a child of the nuxeo process, so it is terminated along with the server, which means the server is never restarted.

      Short term: increase STOP_MAX_WAIT. This doesn't fix the race condition, just makes it less likely to occur.
      Longer term: rewrite the ProcessManager to make it more discerning in what it chooses to kill.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: