-
Type: Improvement
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
QE 2024-04-01, QE 2024-04-15, QE 2024-04-29, QE 2024-05-13
In order to get a response closest to a replSet we should try sending the command directly to a random shard.
We need to create our own CollectionRoutingInfo with shardVersion UNSHARDED and dbVersion with timestamp zero. this will ensure the command is properly retried if the collection is concurrently created.
collections with foreign namespaces (ie there is a $out, $merge, $lookup, $unionWith, ect) should not be eligible for this option immediately so those can still return an empty batch for now, we will consider these stages in a follow up ticket.
- is depended on by
-
SERVER-82462 Make $densify behave the same in replicaset and sharded cluster when db does not exists
- Closed
-
SERVER-82096 Make count command behave the same in replicaset and sharded cluster when db does not exists
- Closed
-
SERVER-75859 Unify behavior between mongod and mongos when running $collStats on a nonexistent database
- Closed
-
SERVER-75861 Unify behavior between mongod and mongos when running $planCacheStats on a nonexistent database
- Closed
-
SERVER-82896 Complete TODO listed in SERVER-82095
- Closed
-
SERVER-83547 Unify behavior for explain().aggregate() when running on a nonexistent database
- Closed
-
SERVER-88443 mongos does not appropriately emulate mongod when db does not exist in find commands
- Closed
-
SERVER-88442 mongos does not appropriately emulate mongod when db does not exist in aggregation commands with foreign namespaces
- Closed
- related to
-
SERVER-90434 remove TODOs and accept some divergent behavior on non-existant dbs
- Closed