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

SessionKiller should release mutex before creating opctx

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Repl 2023-02-06, Repl 2023-02-20
    • 110

    Description

      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)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: