Avoid taking any lock manager locks in the killCursors code path

XMLWordPrintableJSON

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

      In the killCursors code path we acquire a collection lock via AutoStatsTracker which could cause a deadlock (e.g., when there is a parallel DDL task queueing up on taking a Global X lock). Ideally, we'd want to re-design the killCursors code path to avoid any lock manager locks. Once it is done, the test from SERVER-35567 can be re-enabled (note that the test will require some modifications to avoid getting stuck in the killSessions state, see comments to SERVER-35567 for details).

            Assignee:
            [DO NOT USE] Backlog - Query Execution
            Reporter:
            Anton Korshunov
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: