diff options
author | Randolph Tan <randolph@10gen.com> | 2018-01-18 15:23:59 -0500 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2018-01-22 10:12:19 -0500 |
commit | 03a949db6656076c759a160e385efd81e066cf24 (patch) | |
tree | f8f4b20c2dd4463a8f1498049f521801900a383f /jstests/sharding/exact_shard_key_target.js | |
parent | 41239540c1c6b971247780b18495f3998d564787 (diff) | |
download | mongo-03a949db6656076c759a160e385efd81e066cf24.tar.gz |
SERVER-32681 exact_shard_key_target.js moveChunk should wait for delete
Diffstat (limited to 'jstests/sharding/exact_shard_key_target.js')
-rw-r--r-- | jstests/sharding/exact_shard_key_target.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/jstests/sharding/exact_shard_key_target.js b/jstests/sharding/exact_shard_key_target.js index aef428fc8fc..26d7c2402d1 100644 --- a/jstests/sharding/exact_shard_key_target.js +++ b/jstests/sharding/exact_shard_key_target.js @@ -14,8 +14,12 @@ assert.commandWorked(admin.runCommand({enableSharding: coll.getDB().getName()})) printjson(admin.runCommand({movePrimary: coll.getDB().getName(), to: st.shard0.shardName})); assert.commandWorked(admin.runCommand({shardCollection: coll.getFullName(), key: {"a.b": 1}})); assert.commandWorked(admin.runCommand({split: coll.getFullName(), middle: {"a.b": 0}})); -assert.commandWorked( - admin.runCommand({moveChunk: coll.getFullName(), find: {"a.b": 0}, to: st.shard1.shardName})); +assert.commandWorked(admin.runCommand({ + moveChunk: coll.getFullName(), + find: {"a.b": 0}, + to: st.shard1.shardName, + _waitForDelete: true +})); st.printShardingStatus(); |