Simplify shutdown logic in mongod

XMLWordPrintableJSON

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

      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:
            [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: