0
0
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:
Wenbin Zhu 2021-12-17 20:28:15 +00:00 committed by Evergreen Agent
parent 85cd2f0891
commit a15cc2777d

View File

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