[SERVER-80530] Check if transaction is in progress before aborting it in scopeGuard in `runWithTransactionsFromOpCtx() ` Created: 29/Aug/23  Updated: 29/Oct/23  Resolved: 06/Sep/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.0-rc0, 7.1.0-rc2

Type: Bug Priority: Major - P3
Reporter: Wenqin Ye Assignee: Wenqin Ye
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:
v7.1
Sprint: Sharding NYC 2023-09-04, Sharding NYC 2023-09-18
Participants:
Linked BF Score: 135

 Description   

The scopeGuard in runWithTransactionsFromOpCtx() needs to check if the transaction is in progress before aborting it. Otherwise it can cause an issue where an already committed transaction is aborted. See BF-29758 for the full explanation. 



 Comments   
Comment by Githook User [ 06/Sep/23 ]

Author:

{'name': 'wenqinYe', 'email': 'wenqin908@gmail.com', 'username': 'wenqinYe'}

Message: SERVER-80530: Check if transaction is in progress before aborting it in scopeGuard in `runWithTransactionsFromOpCtx() `
Branch: v7.1
https://github.com/mongodb/mongo/commit/4480abb4b7c365713133c4aa7e17f544fc59ffdf

Comment by Githook User [ 01/Sep/23 ]

Author:

{'name': 'wenqinYe', 'email': 'wenqin908@gmail.com', 'username': 'wenqinYe'}

Message: SERVER-80530: Check if transaction is in progress before aborting it in scopeGuard in `runWithTransactionsFromOpCtx() `
Branch: master
https://github.com/mongodb/mongo/commit/5d8c85e7577f55986e57582b68e4c13b442a4bf2

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