[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: |
|
||||||||
| 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: |
| Comment by Githook User [ 21/Jan/22 ] |
|
Author: {'name': 'Denis Grebennicov', 'email': 'denis.grebennicov@mongodb.com', 'username': 'denis631'}Message: |