[SERVER-65952] Update all change_stream_match_pushdown tests to use verifyChangeStreamOnWholeCluster Created: 26/Apr/22  Updated: 29/Oct/23  Resolved: 27/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Bernard Gorman Assignee: Sebastien Mendez
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: QE 2023-02-06, QE 2023-02-20, QE 2023-03-06, QE 2023-03-20, QE 2023-04-03
Participants:

 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.



 Comments   
Comment by Githook User [ 23/Mar/23 ]

Author:

{'name': 'Sebastien Mendez', 'email': 'sebastien.mendez@mongodb.com', 'username': 'rakiz'}

Message: SERVER-65952 Update tests to use verifyChangeStreamOnWholeCluster
Branch: master
https://github.com/mongodb/mongo/commit/2854b6c440690f718a2d3cba624745ea8bdff3a3

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