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

Simplify shutdown logic in mongod

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Storage Execution

    Description

      The shutdown path intentionally leaks a MODE_X global lock to disallow operations which require locks until exit() is called. Post SERVER-69461 this logic got more complex, as we now have to keep the opCtx and client alive to ensure the lock is held.

      If taking locks requires an opCtx, maybe we can simplify by making sure there are no active clients, instead of relying on the locking mechanism.

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            yujin.kang@mongodb.com Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: