-
Type: Bug
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.4.0
-
Component/s: Aggregation Framework
-
Query
-
ALL
-
v3.4
-
Query 2016-12-12
In a sharded configuration, users cannot query a view if its backing namespace is also a view and its pipeline contains $collStats. More concretely,
db.createView("firstView", "somethingElse", []); db.createView("collStatsView", "firstView", [ { $collStats: {} } ]);
All queries against collStatsView incorrectly fail with "command not supported on view".
This bug does not affect views that don't have $collStats in their pipelines. It also does not affect views whose pipelines contain $collStats but have a collection as their backing namespace.
- is related to
-
SERVER-26765 Move views tests into jsCore
- Closed
- related to
-
SERVER-27414 On mongos, cannot query view whose first stage is $collStats and is backed by another view
- Closed
-
SERVER-43472 Complete TODO listed in SERVER-27269
- Closed
-
SERVER-44209 Complete TODO listed in SERVER-27269
- Closed