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

Update all change_stream_match_pushdown tests to use verifyChangeStreamOnWholeCluster

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • Fully Compatible
    • QE 2023-02-06, QE 2023-02-20, QE 2023-03-06, QE 2023-03-20, QE 2023-04-03

    Description

      At present, the change_stream_match_pushdown*.js tests in jstests/oplog_rewrite use different variations of verifyOps, verifyNonInvalidatingOps, and verifyChangeStreamOnWholeCluster helper functions to verify the rewrite behaviour. There are also some gaps in coverage caused by these variations; for instance, in change_stream_match_pushdown_operation_type_rewrite.js we do not test the rewrite for invalidating events. This is because the verifyNonInvalidatingOps helper in this file relies on running explain with executionStats, which for a single-collection stream fails on invalidation. Running explain on a whole-cluster stream would resolve this problem and allow us to test invalidating events.

      The tests should be changed to all use the verifyChangeStreamOnWholeCluster helper, and new test-cases added to cover the gap outlined above.

      Attachments

        Activity

          People

            sebastien.mendez@mongodb.com Sebastien Mendez
            bernard.gorman@mongodb.com Bernard Gorman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: