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

Validate the database/shard versions for bulkWrite sent from mongos

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Fully Compatible
    • Repl 2023-03-06, Repl 2023-03-20, Repl 2023-04-03, Repl 2023-04-17

      Currently, database/shard version checks are done with the help of the OperationShardingState class. OperationShardingState already supports storing versions for multiple namespaces (despite the stale comment). So we will need to setShardRole as part of the command invocation based on the database/shard versions for the namespaces in the nsInfo before actually executing any operation.

      To do that, each entry in nsInfo may accept an unstable databaseVersion/shardVersion field used internally for router to shard database/shard version check for that namespace.

            Assignee:
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Reporter:
            lingzhi.deng@mongodb.com Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: