Remove remainders of DocumentSourceChangeStreamCheckTopologyChange

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-111727 changes the change stream pipeline building code for sharded clusters to that the DocumentSourceChangeStreamCheckTopologyChange stage is not included anymore in sharded cluster change streams, and turns that stage into a no-op stage.

      SERVER-111727 cannot remove the stage entirely because older versions of mongos may still build change stream pipelines including that stage.
      An old version of mongos can include the stage in the pipeline, serialize the pipeline and send it off to a shardsvr mongod for execution. In case the mongod runs the new version that does not know about the stage anymore, parsing the pipeline would fail.
      That's why we need to keep the stage around for now.

      If in the future there is no more version of mongos that builds a pipeline including the DocumentSourceChangeStreamCheckTopologyChange stage, we will be able to remove the remainders of the stage and address all other TODO comments in the code that SERVER-111727 introduces.
      The earliest date we can do this is when all mongos versions are guaranteed to run version v8.3 or higher.

            Assignee:
            Unassigned
            Reporter:
            Jan Steemann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: