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

Prevent lock upgrade in createIndexes under transaction

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution NAMER
    • Fully Compatible
    • Execution NAMR Team 2023-09-18

      In the createIndexes command, there are a couple checks we do under IS locks before releasing those locks and then later taking IX locks. However if we are in a transaction, then shared locks participate in two-phase locking and those those IS locks won't actually be released before acquiring the IX locks. Thus a lock upgrade will occur.

            Assignee:
            gregory.noma@mongodb.com Gregory Noma
            Reporter:
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: