Creating a collection with changeStreamPreAndPostImages enabled in a transaction crashes the server

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.3.0, 5.2.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.2
    • QE 2022-02-07, QE 2022-01-24
    • 128
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In the typedRun() method of the create command, if changeStreamPreAndPostImages is enabled we create a FixedFCVRegion. A FixedFCVRegion expects to take the fcvLock as the outermost lock, so this invariants if we're in a transaction where the global lock is already held.

      (this might affect collMod with changeStreamPreAndPostImages as well if that can be run in a transaction)

              Assignee:
              Denis Grebennicov
              Reporter:
              Matthew Russotto
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: