mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-60387 make moveChunk() waitForDelete in auth_add_shard.js
This commit is contained in:
parent
aa6774ea17
commit
d2b702f519
@ -70,8 +70,9 @@ for (var i = 0; i < 4; i++) {
|
||||
}
|
||||
|
||||
// move a chunk
|
||||
assert.commandWorked(
|
||||
admin.runCommand({moveChunk: "foo.bar", find: {_id: 1}, to: addShardRes.shardAdded}));
|
||||
// TODO (SERVER-60767): remove _waitForDelete param; removeShard() will sync on range deletion.
|
||||
assert.commandWorked(admin.runCommand(
|
||||
{moveChunk: "foo.bar", find: {_id: 1}, to: addShardRes.shardAdded, _waitForDelete: true}));
|
||||
|
||||
// verify the chunk was moved
|
||||
admin.runCommand({flushRouterConfig: 1});
|
||||
|
Loading…
Reference in New Issue
Block a user