-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Catalog and Routing
There are only three valid combinations for versioning a command with the shard version and database version (<DBV, SV>):
- <dbVersion, UNSHARDED> → Targets an unsharded collection located in the database's primary shard.
- <dbVersion, boost::none> → Targets the database's primary shard.
- <boost::none, shardVersion> → Targets a sharded/tracked collection.
Any other combinations are incorrect and may introduce bugs in the future.
The goal of this ticket is to ensure that no code sends a command versioned with an invalid combination of DBV and SV.
- depends on
-
SERVER-101687 Investigate misuses of `buildVersionedRequests` from `cluster_command_helpers` that incorrectly use the database version protocol
-
- Backlog
-
- is depended on by
-
SERVER-69484 Commands with shardVersion UNSHARDED must have a valid dbVersion
-
- Closed
-