Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-74061

Support $out for time-series on secondaries and sharded clusters

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • v7.0
    • QE 2023-03-06, QE 2023-03-20

      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.

            Assignee:
            gil.alon@mongodb.com Gil Alon
            Reporter:
            gil.alon@mongodb.com Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: