Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-39883

Powercycle doesn't actually wait for the mongod process to exit during shutdown_mongod

    XMLWordPrintable

    Details

    • Operating System:
      ALL
    • Linked BF Score:
      22

      Description

      The "shutdown_mongod" action runs the {shutdown: 1, force: true} command and then (on Linux) waits for psutil to say no processes with the name "mongod" exist. The wait_for_mongod_shutdown() function then sleeps an arbitrary extra 5 seconds in order to wait for any pending I/O to finish. It possible for 5 seconds to not be long enough where a file will disappear when running rsync or the mongod process will fail to start.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: