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

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • v4.4
    • STM 2020-06-29
    • 50
    • 3
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Daniel Gottlieb (Inactive)
              Reporter:
              Max Hirschhorn
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: