Validate the database/shard versions for bulkWrite sent from mongos

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Lingzhi Deng
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: