[SERVER-70193] Add syntax sugar for using remote_command_runner API with transactions Created: 03/Oct/22  Updated: 29/Oct/23  Resolved: 14/Dec/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

Type: Task Priority: Major - P3
Reporter: George Wangensteen Assignee: Jason Chan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-72082 Process transaction metadata via the ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2022-12-26, Service Arch 2022-11-14, Service Arch 2022-11-28, Service Arch 2022-12-12
Participants:

 Description   

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.  



 Comments   
Comment by Githook User [ 14/Dec/22 ]

Author:

{'name': 'Jason Chan', 'email': 'jason.chan@mongodb.com', 'username': 'jasonjhchan'}

Message: SERVER-70193 Add sendTxnCommand to async rpc API
Branch: master
https://github.com/mongodb/mongo/commit/dd2e04b11c90385c4c06fe71ed87164e0a9cd712

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