Ensure that mongos upgrades the WC of a shardCollection request to 'majority' when possible

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • v8.1, v8.0, v7.0, v6.0
    • CAR Team 2025-03-17
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SinceĀ SERVER-102024, a mongod process has to always honor the write concern attached to an incoming request before returning a response.

      This change now requires shardCollection requests to have their write concern upgraded to 'majority' before the mongos node forwards them to the primary shard, instead of just doing that within the context of the DDLCoordinator - or the primary shard could raise an UnsatisfiableWriteConcern error when applying the received parameter upon command completion.

              Assignee:
              Paolo Polato
              Reporter:
              Paolo Polato
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: