Apply the merged read/write concern to cluster commands in the router ServiceEntryPoint

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • CAR Team 2026-08-03
    • 2
    • 🟩 Routing and Topology
    • None
    • None
    • None
    • None
    • None
    • None

      On mongos, the effective read/write concern (client-supplied merged with the cluster-wide defaults is computed in the Service Entry Point and stored on the opCtx. But applying it onto the command forwarded to the shards is left to each command implementer, who must remember to call setReadWriteConcern()/applyReadWriteConcern(), which is error-prone.

      Though SERVER-127620 made this application more consistent, the next step is to move the merging into one single place on the router ServiceEntryPoint
      so command implementations no longer need to call setReadWriteConcern() themselves. The per-command calls can then be removed.

            Assignee:
            Jordi Serra Torrens
            Reporter:
            Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: