mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-62151 Wait for secondary nodes to finish recovery before authenticating to avoid rollback closing connection.
This commit is contained in:
parent
85cd2f0891
commit
a15cc2777d
@ -47,6 +47,7 @@ const rolloverConfig = function(newConfig) {
|
||||
const configId = "n" + nodeId;
|
||||
rst.nodeOptions[configId] = Object.merge(rst.nodeOptions[configId], newConfig, true);
|
||||
const newNode = rst.start(nodeId, {}, true, true);
|
||||
rst.awaitSecondaryNodes();
|
||||
assert(newNode.getDB("admin").auth("root", "root"));
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user