summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaley Connelly <haley.connelly@mongodb.com>2020-07-09 16:45:32 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-10 22:55:23 +0000
commit102b3dd7fb50c0220148e5272c00c9bfb418d6c3 (patch)
tree5e6cde7827a0485022069f39240ab32565dac0e5
parentaeb2026e55a51a0b87c3f0b1ff9d7b505c851577 (diff)
downloadmongo-102b3dd7fb50c0220148e5272c00c9bfb418d6c3.tar.gz
SERVER-47900 Disable checkOrphansDeleted helper in 4.4 multiversion testing
-rw-r--r--jstests/hooks/run_check_orphans_are_deleted.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/jstests/hooks/run_check_orphans_are_deleted.js b/jstests/hooks/run_check_orphans_are_deleted.js
index b3745ffe646..384b9bbc91a 100644
--- a/jstests/hooks/run_check_orphans_are_deleted.js
+++ b/jstests/hooks/run_check_orphans_are_deleted.js
@@ -6,6 +6,15 @@
* Note: This hook won't find documents which don't have the full shard key.
*/
(function() {
+
+if (jsTest.options().mixedBinVersions) {
+ // The resumable range deleter can only be enabled in FCV 4.4. We skip running this hook when
+ // the cluster is in FCV 4.2 because there's otherwise no guarantee orphan documents are
+ // eventually cleaned up.
+ jsTestLog("CheckOrphansAreDeletedHelpers are disabled for 4.4 multiversion testing.");
+ return;
+}
+
load('jstests/libs/check_orphans_are_deleted_helpers.js'); // For CheckOrphansAreDeletedHelpers.
load('jstests/libs/discover_topology.js'); // For Topology and DiscoverTopology.