From 7298fededad1bec86f7e006014c8fe04c7048c49 Mon Sep 17 00:00:00 2001 From: Jordi Serra Torrens Date: Thu, 4 Feb 2021 11:18:40 +0000 Subject: SERVER-53967: scaled_collection_stats.js should use {_waitForDelete: true} in moveChunk --- jstests/sharding/scaled_collection_stats.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'jstests') 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()); -- cgit v1.2.1