Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-102312

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

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • CAR Team 2025-03-17
    • 200

      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@mongodb.com Paolo Polato
            Reporter:
            paolo.polato@mongodb.com Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: