[SERVER-27024] Write additional test for new replSetStepDown behavior Created: 14/Nov/16  Updated: 05/Apr/17  Resolved: 28/Nov/16

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.2.12, 3.4.1, 3.5.1

Type: Improvement Priority: Major - P3
Reporter: William Schultz (Inactive) Assignee: William Schultz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-27196 add timeouts to stepdown_needs_electa... Closed
related to SERVER-27214 Disallow chaining in stepdown_needs_e... Closed
related to SERVER-26747 replSetStepDown should wait for last ... Closed
Backwards Compatibility: Fully Compatible
Backport Completed:
Backport Requested:
v3.2
Sprint: Repl 2016-12-12
Participants:

 Description   

As per SERVER-26747, the replSetStepDown command now requires that a majority of nodes are caught up with the primary and that there is at least one electable node present in this majority. The test jstests/replsets/stepdown_needs_electable_secondary.js partially tests this behavior, but we would like to add a test for the case where an electable node is caught up with the primary, but a majority of nodes are NOT caught up. i.e. the case where (majorityCaughtUp=false, electableNodeCaughtUp=true). Consider naming this test stepdown_needs_majority.js



 Comments   
Comment by Githook User [ 29/Dec/16 ]

Author:

{u'username': u'will62794', u'name': u'William Schultz', u'email': u'william.schultz@mongodb.com'}

Message: SERVER-27024 Added test for stepdown needs majority behavior

(cherry picked from commit 48741605f13b278f3c51bfc11660bd0a2dbb498b)
Branch: v3.2
https://github.com/mongodb/mongo/commit/d623f873409bba46b82454ee03140f67274363a7

Comment by Githook User [ 01/Dec/16 ]

Author:

{u'username': u'will62794', u'name': u'William Schultz', u'email': u'william.schultz@mongodb.com'}

Message: SERVER-27024 Added test for stepdown needs majority behavior

(cherry picked from commit 48741605f13b278f3c51bfc11660bd0a2dbb498b)
Branch: v3.4
https://github.com/mongodb/mongo/commit/86337ec3f78d6d8ff0922b57b8b63c1ab078dd45

Comment by Githook User [ 23/Nov/16 ]

Author:

{u'username': u'will62794', u'name': u'William Schultz', u'email': u'william.schultz@mongodb.com'}

Message: SERVER-27024 Added test for stepdown needs majority behavior
Branch: master
https://github.com/mongodb/mongo/commit/48741605f13b278f3c51bfc11660bd0a2dbb498b

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