-
Type: Task
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
QE 2024-03-18
On a mongod, running a $collStats aggregation on a nonexistent database returns a basic document with information about the namespace, the host's ip, and the local machine's time. Otherwise it returns no data about the nonexistent collection. On mongos, the same aggregation results in an error.
The goal of this ticket is to unify the behavior. It is an open question what the result operation should include: host and localTime may not make sense in a mongos context as it may be routing between potentially multiple shards.
- depends on
-
SERVER-88441 mongos does not appropriately emulate mongod when db does not exist in aggregation commands
- Closed