Omit checkInvalidate stage in all-cluster change stream pipelines

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: Change streams
    • None
    • Query Execution
    • Minor Change
    • QE 2025-09-29
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When opening a change stream on the entire cluster (all-cluster change stream), we currently build a change stream pipeline on the data shards that contains the $_internalChangeStreamCheckInvalidate stage.
      This stage is not needed on data shards nor on the config server in all-cluster change streams, as there are no invalidating events in this scenario.
      We can omit building this stage.

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

              Created:
              Updated:
              Resolved: