Prevent lock upgrade in createIndexes under transaction

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Gregory Noma
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: