-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
ALL
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
If a $out aggregation command is run with a timeseries collection as the target collection, that collection will always have the default index following execution $out, even if the user had dropped the default index from the collection prior to running the aggregation command.
This occurs because in out_stage.cpp, a temporary collection is created to write the $out results to and any indexes from the real target collection are copied over. Since the default timeseries index is automatically added upon creation of the collection, the temp collection ends up having the default index in addition to whatever indexes are copied over from the target collection. The temp collection is eventually renamed to be the actual target collection, so the default index persists.
- is related to
-
SERVER-111869 Default timeseries index is not created on output collection in $out when outputs to nonexistent database
-
- Backlog
-