[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: |
|
||||||||
| 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: |