[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: |
|
||||||||
| 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: |
| Comment by Githook User [ 01/Sep/23 ] |
|
Author: {'name': 'wenqinYe', 'email': 'wenqin908@gmail.com', 'username': 'wenqinYe'}Message: |