summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2020-02-05 18:05:39 +0000
committerevergreen <evergreen@mongodb.com>2020-02-05 18:05:39 +0000
commit25833d97dea9035675d92e3f856bc42257193e65 (patch)
treecffaf7a85da1390aa1b1859791304f6eee4f5ae6
parent3114642e2e211fadcbed1b41d13c9f9423a4e27f (diff)
downloadmongo-25833d97dea9035675d92e3f856bc42257193e65.tar.gz
SERVER-41800 Remove call to cleanupOrphaned from range deleter acceptance test (orphans_are_removed_after_failover.js)
-rw-r--r--jstests/sharding/orphans_are_removed_after_failover.js19
1 files changed, 7 insertions, 12 deletions
diff --git a/jstests/sharding/orphans_are_removed_after_failover.js b/jstests/sharding/orphans_are_removed_after_failover.js
index 7f4c5372f2d..01c0b9a24d2 100644
--- a/jstests/sharding/orphans_are_removed_after_failover.js
+++ b/jstests/sharding/orphans_are_removed_after_failover.js
@@ -7,13 +7,13 @@
* 4. Cause a step down on Shard A
* 5. Connect directly to the new primary of Shard A and verify that eventually no documents remain
* from the chunk that was migrated away
+ *
+ * @tags: [requires_fcv_44]
*/
(function() {
"use strict";
-load('./jstests/libs/cleanup_orphaned_util.js');
-
TestData.skipCheckingUUIDsConsistentAcrossCluster = true;
const dbName = "test";
@@ -96,15 +96,10 @@ originalShard0Primary.adminCommand({configureFailPoint: 'suspendRangeDeletion',
let shard0Primary = st.rs0.getPrimary();
let shard0PrimaryColl = shard0Primary.getCollection(ns);
-// Verify that orphans are not yet deleted on the new primary.
-assert.eq(shard0PrimaryColl.find().itcount(), expectedNumDocsShard0Before);
-
-// TODO SERVER-41800: Remove call to cleanupOrphaned from range deleter acceptance test.
-const expectedNumIterations = 2;
-cleanupOrphaned(shard0Primary, ns, expectedNumIterations);
-
-// Verify that orphans are deleted.
-assert.eq(shard0PrimaryColl.find().itcount(), expectedNumDocsShard0After);
+// Verify that orphans are deleted on the new primary.
+assert.soon(() => {
+ return shard0PrimaryColl.find().itcount() === expectedNumDocsShard0After;
+});
st.stop();
-})(); \ No newline at end of file
+})();