In a 2-node replica set, restarting the secondary during upgradeSecondaries() can cause the primary to step down and the restarted node to win an election, leaving primaryConnection pointing at the new-version node instead of the old one. By adding a third node to the replica set, the primary maintains a majority throughout the rolling restart. With this strategy we can revert the originalPrimary workaround from SERVER-119277.
- is related to
-
SERVER-119277 Pass unchanged node to afterSecondariesHaveRestarted
-
- Closed
-