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

Simplify shutdown logic in mongod

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution

      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.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            yujin.kang@mongodb.com Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: