The current implementation of $out will error when run on a secondary node and sharded clusters. The ReplicaSetNodeProcessInterface and ShardsvrProcessInterface need to add support for createTimeseries and insertTimeseries that are declared in the NonShardsvrProcessInterface. These functions will have to send commands to the primary. The commands to create time-series collections and rename collections will use the collection namespace substring "tmp.agg_out" to determine the command derives from the $out aggregation stage.
This ticket will also add guard the new feature behind a fcv check.
- depends on
-
SERVER-72687 Support for $out to Time-series collections
- Closed
- is depended on by
-
SERVER-73823 Add support for mismatching timeseries spec for $out
- Backlog
-
SERVER-74665 Complete TODO listed in SERVER-74601
- Closed
-
SERVER-75039 $out should be able to replace a time-series collection with a non time-series collection
- Closed
- is duplicated by
-
SERVER-74650 Complete TODO listed in SERVER-74601
- Closed
- related to
-
SERVER-76626 Investigate test failures for concurrent $out and shardCollection commands
- Closed
-
SERVER-80965 Remove Feature Flag featureFlagAggOutTimeseries
- Backlog