0
0
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:
Paolo Polato 2021-10-18 08:37:11 +00:00 committed by Evergreen Agent
parent aa6774ea17
commit d2b702f519

View File

@ -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});