[SERVER-31827] Make `multi_rs.js` wait for secondary status after stepdown in `upgradePrimary` Created: 03/Nov/17  Updated: 30/Oct/23  Resolved: 03/Nov/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.4.11, 3.6.0-rc3

Type: Bug Priority: Major - P3
Reporter: ADAM Martin (Inactive) Assignee: ADAM Martin (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.4
Sprint: Platforms 2017-11-13
Participants:
Linked BF Score: 19

 Description   

The `upgradePrimary` function eagerly connects to the primary that is stepping down, before it may have changed to `SECONDARY` state.



 Comments   
Comment by Githook User [ 28/Nov/17 ]

Author:

{'name': 'ADAM David Alan Martin', 'username': 'adamlsd', 'email': 'adam.martin@10gen.com'}

Message: SERVER-31827 Wait for Secondary after stepdown.

The primary being told to step down will kill all incoming connections
during that stepdown process. When this happens, connections which
are incoming may be closed before they can enter a state which
"reserves" them from closure. To facilitate correct semantics in this
test, we should wait for the primary to completely step down to a
secondary, before trying to authenticate to it again.

(cherry picked from commit 29769e9514980334d72b77bd5af618b7a69e7e72)
Branch: v3.4
https://github.com/mongodb/mongo/commit/2e9c0d0ed460fd637d5bdb8186825a48815bda2b

Comment by Githook User [ 03/Nov/17 ]

Author:

{'name': 'ADAM David Alan Martin', 'username': 'adamlsd', 'email': 'adam.martin@10gen.com'}

Message: SERVER-31827 Wait for Secondary after stepdown.

The primary being told to step down will kill all incoming connections
during that stepdown process. When this happens, connections which
are incoming may be closed before they can enter a state which
"reserves" them from closure. To facilitate correct semantics in this
test, we should wait for the primary to completely step down to a
secondary, before trying to authenticate to it again.
Branch: master
https://github.com/mongodb/mongo/commit/29769e9514980334d72b77bd5af618b7a69e7e72

Generated at Thu Feb 08 04:28:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.