[SERVER-85232] Set `InMultiDocumentTransaction` flag when recovering committed distributed transactions Created: 16/Jan/24  Updated: 23/Jan/24  Resolved: 23/Jan/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Pierlauro Sciarelli
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
is caused by SERVER-73040 Ban all lock upgrades Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 155

 Description   

When applying the oplog entries of a committed prepared transaction on startup/step-up, the operation context must be flagged as in multi document transaction.

Not doing so results in this if statement getting evaluated as false with the consequence of acquiring the collection lock in the wrong mode.



 Comments   
Comment by Githook User [ 23/Jan/24 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-85232 Set `inMultiDocumentTransaction` flag when recovering committed distributed transactions (#18065)

GitOrigin-RevId: 1b434ce3d19f653d7efc2d65f2ae0c4c96bdf198
Branch: master
https://github.com/mongodb/mongo/commit/8c54a46bb67253623c6d11c4d26fc0697ff318ea

Generated at Thu Feb 08 06:57:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.