[SERVER-76135] Mark client used in `runTransactionOnShardingCatalog` as killable on stepdown Created: 14/Apr/23  Updated: 29/Oct/23  Resolved: 17/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0, 7.1.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:
Backports
Depends
Problem/Incident
is caused by SERVER-74192 DDL coordinators that rely on the int... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0
Sprint: Sharding EMEA 2023-04-17
Participants:
Linked BF Score: 135

 Description   

The client used on the CSRS to execute transactions must be marked as killable on step-down in order to prevent transactions getting stuck indefinitely.

A way to do so is to add this snippet after constructing the client:

    {
        stdx::lock_guard<Client> lk(*newClient.get());
        newClient.get()->setSystemOperationKillableByStepdown(lk);
    }



 Comments   
Comment by Githook User [ 17/Apr/23 ]

Author:

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

Message: SERVER-76135 Mark client used in `runTransactionOnShardingCatalog` as killable on stepdown
Branch: v7.0
https://github.com/mongodb/mongo/commit/8d0a89f34def2e12a6734caa05c2275beed9c3cc

Comment by Githook User [ 17/Apr/23 ]

Author:

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

Message: SERVER-76135 Mark client used in `runTransactionOnShardingCatalog` as killable on stepdown
Branch: master
https://github.com/mongodb/mongo/commit/2291256c760e8014cf1050014961a4c4c6628aaf

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