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

Add syntax sugar for using remote_command_runner API with transactions

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Service Arch 2022-12-26, Service Arch 2022-11-14, Service Arch 2022-11-28, Service Arch 2022-12-12

      Add some syntax sugar to make it easy to use the new remote command runner API with particular generic command data specific to  the transactional context a RPC invocation is running under, like txnNumber and other metadata . Basically, eliminate the need for the helpers like the MultiStatementTransactionRequestSender under the new API, by adding syntax-sugar for async_rpc::send{Hedged}Command that automatically appends this transaction metadata. See https://github.com/mongodb/mongo/blob/master/src/mongo/s/multi_statement_transaction_requests_sender.cpp#L42-L59 for an example of how transaction metadata is added to requests under MSTRS - our new syntax sugar should essentially allow us to add the same data with the new API.  

            Assignee:
            jason.chan@mongodb.com Jason Chan
            Reporter:
            george.wangensteen@mongodb.com George Wangensteen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: