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

SessionKiller should release mutex before creating opctx

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Repl 2023-02-06, Repl 2023-02-20
    • 110

      The SessionKiller runs in a loop and re-creates an operation context each loop. Since it does this under its internal mutex, and in other calls an operation context is accepted and then the internal mutex is taken, this can result in a deadlock involving the operation context creation spinlock.

      We can simply release the mutex while creating the operation context (ensuring we check _shutdown after obtaining the mutex)

            Assignee:
            matthew.russotto@mongodb.com Matthew Russotto
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: