Mark client used in `runTransactionOnShardingCatalog` as killable on stepdown

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Pierlauro Sciarelli
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: