diff options
author | Moustafa Maher <m.maher@10gen.com> | 2021-07-19 23:12:05 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-22 18:21:34 +0000 |
commit | 2ae5099c2537512ff020621d2d2ac592b187be9c (patch) | |
tree | 40a5c5cd05a2148902fd8d0abdbab2ebe6687c04 /jstests | |
parent | f5afeb9966a9a58f26347c3670bd42f36560eb8a (diff) | |
download | mongo-2ae5099c2537512ff020621d2d2ac592b187be9c.tar.gz |
SERVER-56845 do reconfig with retries in jstests/sharding/implicit_default_write_concern_add_shard.js
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/sharding/implicit_default_write_concern_add_shard.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/implicit_default_write_concern_add_shard.js b/jstests/sharding/implicit_default_write_concern_add_shard.js index ed6b85f55b1..40d4790e1b9 100644 --- a/jstests/sharding/implicit_default_write_concern_add_shard.js +++ b/jstests/sharding/implicit_default_write_concern_add_shard.js @@ -7,13 +7,13 @@ (function() { "use strict"; -load("jstests/multiVersion/libs/multi_cluster.js"); // For 'upgradeCluster()' +load("jstests/replsets/rslib.js"); // For reconfig and isConfigCommitted. function addNonArbiterNode(nodeId, rst) { const config = rst.getReplSetConfigFromNode(); config.members.push({_id: nodeId, host: rst.add().host}); config.version++; - assert.commandWorked(rst.getPrimary().adminCommand({replSetReconfig: config})); + reconfig(rst, config); assert.soon(() => isConfigCommitted(rst.getPrimary())); rst.waitForConfigReplication(rst.getPrimary()); rst.awaitReplication(); |