[SERVER-55768] Make txn_two_phase_commit_killop.js not kill prepareTransaction on the coordinator Created: 02/Apr/21  Updated: 29/Oct/23  Resolved: 06/Apr/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.9.0-rc1, 5.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
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:
v4.9
Sprint: Sharding 2021-04-05, Sharding 2021-04-19
Participants:
Linked BF Score: 44

 Description   

The way that the test finds the pids for the operations to kill is through a $currentOp aggregation command with query {desc: "TransactionCoordinator"}. The command can return the pid for the prepareTransaction operation on the coordinator shard itself. Killing that operation is expected to cause the transaction to abort. The currentOp entry for the prepareTransaction operation should have the command obj inside the "command" so we can make use of this property to filter out its pid.



 Comments   
Comment by Githook User [ 09/Apr/21 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-55768 Make txn_two_phase_commit_killop.js not kill prepareTransaction on the coordinator

(cherry picked from commit d3aac65e0114429242b507825183ce7224ab9901)
Branch: v4.9
https://github.com/mongodb/mongo/commit/1ddadedeadd6029a0e26281fd6f13b0dee867d03

Comment by Githook User [ 06/Apr/21 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-55768 Make txn_two_phase_commit_killop.js not kill prepareTransaction on the coordinator
Branch: master
https://github.com/mongodb/mongo/commit/d3aac65e0114429242b507825183ce7224ab9901

Generated at Thu Feb 08 05:37:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.