Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-76135

Mark client used in `runTransactionOnShardingCatalog` as killable on stepdown

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0, 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v7.0
    • Sharding EMEA 2023-04-17
    • 135

      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);
          }
      

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: