[SERVER-74061] Support $out for time-series on secondaries and sharded clusters Created: 15/Feb/23  Updated: 29/Oct/23  Resolved: 28/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 7.0.3

Type: Improvement Priority: Major - P3
Reporter: Gil Alon Assignee: Gil Alon
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
depends on SERVER-72687 Support for $out to Time-series colle... Closed
is depended on by SERVER-73823 Add support for mismatching timeserie... In Code Review
is depended on by SERVER-74665 Complete TODO listed in SERVER-74601 Closed
is depended on by SERVER-75039 $out should be able to replace a time... Closed
Documented
is documented by DOCS-16078 Investigate changes in SERVER-74061: ... Closed
Duplicate
is duplicated by SERVER-74650 Complete TODO listed in SERVER-74601 Closed
Related
related to SERVER-76626 Investigate test failures for concurr... Closed
related to SERVER-80965 Remove Feature Flag featureFlagAggOut... Backlog
Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0
Sprint: QE 2023-03-06, QE 2023-03-20
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 26/Sep/23 ]

Author:

{'name': 'Gil Alon', 'email': 'gil.alon@mongodb.com', 'username': 'galon1'}

Message: SERVER-74061 [v7.0] Support for $out to time-series collections
Branch: v7.0
https://github.com/mongodb/mongo/commit/61c8dcdd1e196f8e2e906fb75afa3a65bb9847a0

Comment by Gil Alon [ 18/Jul/23 ]

I'm requesting a backport of this ticket, since a backport (BACKPORT-16699) was approved for SERVER-72687 (the original ticket for $out support to time-series). We need this ticket to be backported as well, if we want to backport the entire feature.

Comment by Githook User [ 27/Apr/23 ]

Author:

{'name': 'Gil Alon', 'email': 'gil.alon@mongodb.com', 'username': 'galon1'}

Message: SERVER-74061 Add support for $out to timeseries on secondaries and sharded clusters
Branch: master
https://github.com/mongodb/mongo/commit/5857ab4ec36f275d751eb95d3e715b45d712eb98

Comment by Gil Alon [ 31/Mar/23 ]

Sending this to blocked as we wait for SERVER-72687 to be re-merged into the codebase.

Generated at Thu Feb 08 06:26:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.