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

There is no way to safely register a shutdown task without potentially crashing if we happen to be in shutdown mode

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2017-10-23

    Description

      See BF-6795 linked below. In summary, we create a service and register a shutdown task during sharding state initialization, at which time we can be in shutdown mode and invariant the shutdown task registration. This can happen generically for any task we register for shutdown.

      Perhaps a mutex could protect the shutdownFlag, such that a service can be both created and its shutdown task registered, before allowing modification to the shutdownFlag, thus adding safety.

      Attachments

        Activity

          People

            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: