[SERVER-62518] Creating a collection with changeStreamPreAndPostImages enabled in a transaction crashes the server Created: 11/Jan/22  Updated: 29/Oct/23  Resolved: 25/Jan/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0, 5.2.1

Type: Bug Priority: Major - P3
Reporter: Matthew Russotto Assignee: Denis Grebennicov
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.2
Sprint: QE 2022-02-07, QE 2022-01-24
Participants:
Linked BF Score: 128

 Description   

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)



 Comments   
Comment by Githook User [ 09/Feb/22 ]

Author:

{'name': 'Denis Grebennicov', 'email': 'denis.grebennicov@mongodb.com', 'username': 'denis631'}

Message: SERVER-62518 Creating a collection with changeStreamPreAndPostImages enabled in a transaction crashes the server
Branch: v5.2
https://github.com/mongodb/mongo/commit/f14f0cf3b1e77010d5e4d4ebc75d43b509fc1f2c

Comment by Githook User [ 21/Jan/22 ]

Author:

{'name': 'Denis Grebennicov', 'email': 'denis.grebennicov@mongodb.com', 'username': 'denis631'}

Message: SERVER-62518 Creating a collection with changeStreamPreAndPostImages enabled in a transaction crashes the server
Branch: master
https://github.com/mongodb/mongo/commit/1cf01770e7b29fcfd374400bdda805ffb8ab7f37

Generated at Thu Feb 08 05:55:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.