Consider adding support for AsyncRPC in cluster_commands_helpers

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • CAR Team 2025-12-08, CAR Team 2025-12-22
    • 3
    • 🟩 Routing and Topology
    • None
    • None
    • None
    • None
    • None
    • None

      cluster_commands_helpers.h contains a collection of free-standing functions that encapsulate shard targeting and command execution against shards. Under the hood, they use MultiStatementTransactionRequestsSender, which in turn uses AsyncRequestsSender. There is another API, called AsyncRPC, which takes typed command objects instead of raw BSONObject's, and is largely incompatible with AsyncRequestSender. Some of our infrastructure (e.g. sharding_ddl_util) uses this other API. This ticket is to consider adding minimal support for this API in cluster_commands_helpers.h .

            Assignee:
            Unassigned
            Reporter:
            Aitor Esteve Alvarado
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: