summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Storch <david.storch@mongodb.com>2022-01-24 14:46:30 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-01-24 19:30:18 +0000
commit6a4628b52a227e1100df8facb3a048c972debfb1 (patch)
treeda3521a0cbd79e6be0b31523529079bc01c5650a
parent9468bd87d8fc238189e4b01cc7313d84532028bf (diff)
downloadmongo-6a4628b52a227e1100df8facb3a048c972debfb1.tar.gz
SERVER-62829 Prevent query_hash_stability.js from running in downgrade passthroughs
(cherry picked from commit 9343d1633ab6dfa162dc494e13152d13c40fb1a2)
-rw-r--r--buildscripts/resmokeconfig/suites/change_streams_downgrade.yml3
-rw-r--r--buildscripts/resmokeconfig/suites/retryable_writes_downgrade.yml3
-rw-r--r--buildscripts/resmokeconfig/suites/sharded_retryable_writes_downgrade.yml3
-rw-r--r--jstests/core/query_hash_stability.js4
4 files changed, 13 insertions, 0 deletions
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() {