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

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4
    • Sprint:
      STM 2020-06-29
    • Linked BF Score:
      50
    • Story Points:
      3

      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

              Assignee:
              daniel.gottlieb Daniel Gottlieb
              Reporter:
              max.hirschhorn Max Hirschhorn
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: