summaryrefslogtreecommitdiff
path: root/jstests/multiVersion
diff options
context:
space:
mode:
authorArun Banala <arun.banala@mongodb.com>2020-01-21 13:42:45 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-01-21 16:38:58 +0000
commitb5cb09ec2f7baef7d8ec776815754f5e6e6d459a (patch)
tree0d2eb50a598e82f22ee7d2511e3012e513353bd8 /jstests/multiVersion
parent202dacee3f31ea539c86e9d818d9bc584b3d54c3 (diff)
downloadmongo-b5cb09ec2f7baef7d8ec776815754f5e6e6d459a.tar.gz
SERVER-43918 Fix 'compound_hashed_shard_key.js' test flakiness
Diffstat (limited to 'jstests/multiVersion')
-rw-r--r--jstests/multiVersion/compound_hashed_shard_key.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/jstests/multiVersion/compound_hashed_shard_key.js b/jstests/multiVersion/compound_hashed_shard_key.js
index 68abcb3e050..7e3909c56b2 100644
--- a/jstests/multiVersion/compound_hashed_shard_key.js
+++ b/jstests/multiVersion/compound_hashed_shard_key.js
@@ -14,6 +14,13 @@ load("jstests/multiVersion/libs/multi_cluster.js"); // upgradeCluster.
TestData.skipCheckDBHashes = true; // Skip db hashes when restarting the replset.
+// When checking UUID consistency, the shell attempts to run a command on the node it believes is
+// primary in each shard. However, this test restarts shards, and the node that is elected primary
+// after the restart may be different from the original primary. Since the shell does not retry on
+// NotMaster errors, and whether or not it detects the new primary before issuing the command is
+// nondeterministic, skip the consistency check for this test.
+TestData.skipCheckingUUIDsConsistentAcrossCluster = true;
+
const nodeOptions42 = {
binVersion: "last-stable"
};