[SERVER-82313] Fix cancelling txn api from the caller Created: 19/Oct/23  Updated: 02/Jan/24  Resolved: 09/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 7.2.0-rc0, 7.0.2, 7.1.0, 7.3.0-rc0
Fix Version/s: 7.2.1, 7.3.0-rc0, 7.0.5

Type: Bug Priority: Major - P3
Reporter: Silvia Surroca Assignee: Israel Hsu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Problem/Incident
is caused by SERVER-66261 Add a task executor that executes inl... Closed
Assigned Teams:
Sharding NYC
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.2
Participants:
Linked BF Score: 13

 Description   

The transaction API uses the InlineExecutor to cancel the operation context

Since the InlineExecutor is also in charge of running the transaction itself, if the transaction gets stuck somewhere, we are not able to interrupt the operation context through the caller's cancellation token because the executor is taken.



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

Author:

{'name': 'Israel Hsu', 'email': 'israel.hsu@mongodb.com', 'username': 'israelhsu'}

Message: SERVER-82313 Uses proper TaskExecutor for canceling txn
Branch: v7.2
https://github.com/mongodb/mongo/commit/f87abc7ddd5fe1a21092bef74727f87393b003f7

Comment by Githook User [ 13/Nov/23 ]

Author:

{'name': 'Israel Hsu', 'email': 'israel.hsu@mongodb.com', 'username': 'israelhsu'}

Message: SERVER-82313 Uses proper TaskExecutor for canceling txn
Branch: v7.1
https://github.com/mongodb/mongo/commit/929b9eadbbf04b555ec5910bf26543f2fb2dcb0e

Comment by Githook User [ 13/Nov/23 ]

Author:

{'name': 'Israel Hsu', 'email': 'israel.hsu@mongodb.com', 'username': 'israelhsu'}

Message: SERVER-82313 Uses proper TaskExecutor for canceling txn
Branch: v7.0
https://github.com/mongodb/mongo/commit/a63b92c90fa455a08b4e638fcead2c95d50a289d

Comment by Githook User [ 08/Nov/23 ]

Author:

{'name': 'Israel Hsu', 'email': 'israel.hsu@mongodb.com', 'username': 'israelhsu'}

Message: SERVER-82313 Uses proper TaskExecutor for canceling txn
Branch: master
https://github.com/mongodb/mongo/commit/ca824e8fa708644a6784efed5724e9b6463ae81c

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