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

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

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

      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@mongodb.com Denis Grebennicov
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: