From 6a4628b52a227e1100df8facb3a048c972debfb1 Mon Sep 17 00:00:00 2001 From: David Storch Date: Mon, 24 Jan 2022 14:46:30 +0000 Subject: SERVER-62829 Prevent query_hash_stability.js from running in downgrade passthroughs (cherry picked from commit 9343d1633ab6dfa162dc494e13152d13c40fb1a2) --- buildscripts/resmokeconfig/suites/change_streams_downgrade.yml | 3 +++ buildscripts/resmokeconfig/suites/retryable_writes_downgrade.yml | 3 +++ .../resmokeconfig/suites/sharded_retryable_writes_downgrade.yml | 3 +++ jstests/core/query_hash_stability.js | 4 ++++ 4 files changed, 13 insertions(+) diff --git a/buildscripts/resmokeconfig/suites/change_streams_downgrade.yml b/buildscripts/resmokeconfig/suites/change_streams_downgrade.yml index 3806c0577af..488019780b5 100644 --- a/buildscripts/resmokeconfig/suites/change_streams_downgrade.yml +++ b/buildscripts/resmokeconfig/suites/change_streams_downgrade.yml @@ -347,6 +347,9 @@ selector: # Transaction-continuing commands must use the same API parameters as the first command, so tests # that use API parameters cannot be run with transactions. - uses_api_parameters + # Used for tests which can run in multiversion configurations but cannot run while a replica set + # or shard is being actively upgraded or downgraded. + - cannot_run_during_upgrade_downgrade executor: archive: diff --git a/buildscripts/resmokeconfig/suites/retryable_writes_downgrade.yml b/buildscripts/resmokeconfig/suites/retryable_writes_downgrade.yml index c19b4a2fdbd..2ccddb9eaa8 100644 --- a/buildscripts/resmokeconfig/suites/retryable_writes_downgrade.yml +++ b/buildscripts/resmokeconfig/suites/retryable_writes_downgrade.yml @@ -111,6 +111,9 @@ selector: # operation and cluster times aren't shared between shells. # "Cowardly refusing to run test with network retries enabled when it uses startParallelShell()" - uses_parallel_shell + # Used for tests which can run in multiversion configurations but cannot run while a replica set + # or shard is being actively upgraded or downgraded. + - cannot_run_during_upgrade_downgrade executor: archive: diff --git a/buildscripts/resmokeconfig/suites/sharded_retryable_writes_downgrade.yml b/buildscripts/resmokeconfig/suites/sharded_retryable_writes_downgrade.yml index 453214ba77a..c577c6f464b 100644 --- a/buildscripts/resmokeconfig/suites/sharded_retryable_writes_downgrade.yml +++ b/buildscripts/resmokeconfig/suites/sharded_retryable_writes_downgrade.yml @@ -137,6 +137,9 @@ selector: # operation and cluster times aren't shared between shells. # "Cowardly refusing to run test with network retries enabled when it uses startParallelShell()" - uses_parallel_shell + # Used for tests which can run in multiversion configurations but cannot run while a replica set + # or shard is being actively upgraded or downgraded. + - cannot_run_during_upgrade_downgrade executor: archive: diff --git a/jstests/core/query_hash_stability.js b/jstests/core/query_hash_stability.js index 2c2284a63c0..a83861908f9 100644 --- a/jstests/core/query_hash_stability.js +++ b/jstests/core/query_hash_stability.js @@ -4,6 +4,10 @@ * @tags: [ * assumes_read_concern_local, * requires_fcv_51, + * # The test expects the plan cache key on a given node to remain stable. However, the plan + * # cache key is allowed to change between versions. Therefore, this test cannot run in + * # passthroughs that do upgrade/downgrade. + * cannot_run_during_upgrade_downgrade, * ] */ (function() { -- cgit v1.2.1