summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorJordi Serra Torrens <jordi.serra-torrens@mongodb.com>2021-02-04 11:18:40 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-04 14:47:43 +0000
commit7298fededad1bec86f7e006014c8fe04c7048c49 (patch)
treef306be5d9c0788e2dc0853488a4c32186d5f5b3a /jstests
parentab44dc370d11b8369627f2473172243ff6cb4d33 (diff)
downloadmongo-7298fededad1bec86f7e006014c8fe04c7048c49.tar.gz
SERVER-53967: scaled_collection_stats.js should use {_waitForDelete: true} in moveChunk
Diffstat (limited to 'jstests')
-rw-r--r--jstests/sharding/scaled_collection_stats.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/sharding/scaled_collection_stats.js b/jstests/sharding/scaled_collection_stats.js
index a424d190f90..30bebf5b53d 100644
--- a/jstests/sharding/scaled_collection_stats.js
+++ b/jstests/sharding/scaled_collection_stats.js
@@ -23,7 +23,8 @@ st.ensurePrimaryShard(dbName, st.shard0.shardName);
assert.commandWorked(st.s.adminCommand({enableSharding: dbName}));
assert.commandWorked(st.s.adminCommand({shardCollection: ns, key: {_id: 1}}));
assert.commandWorked(st.s.adminCommand({split: ns, middle: {_id: 0}}));
-assert.commandWorked(st.s.adminCommand({moveChunk: ns, find: {_id: 0}, to: st.shard1.shardName}));
+assert.commandWorked(st.s.adminCommand(
+ {moveChunk: ns, find: {_id: 0}, to: st.shard1.shardName, _waitForDelete: true}));
// Determine the unscaled index size.
let res = assert.commandWorked(coll.stats());