[SERVER-26747] replSetStepDown should wait for last write to commit Created: 24/Oct/16  Updated: 07/Mar/17  Resolved: 14/Nov/16

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.2.12, 3.4.0-rc4

Type: Improvement Priority: Major - P3
Reporter: Eric Milkie 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
Documented
is documented by DOCS-9449 Docs for SERVER-26747: replSetStepDow... Closed
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-28110 Set secondaryCatchUpPeriodSecs smalle... Closed
is related to SERVER-27339 ReplSetTest shouldn't inspect TestDat... Closed
is related to SERVER-27117 set writeConcernMajorityJournalDefaul... Closed
is related to SERVER-27118 Default shutdown command's 'timeoutSe... Closed
is related to SERVER-27024 Write additional test for new replSet... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.2
Sprint: Repl 2016-10-31, Repl 2016-11-21
Participants:

 Description   

Today, replSetStepDown waits for one node to have caught up completely with it. Instead, we can change this behavior to wait for a majority of nodes to catch up completely with it.
In this way, we can avoid all rollbacks that might result from the primary stepping down.



 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-26747 replSetStepDown waits for caught up majority with electable secondary

(cherry picked from commit 627f25d2e64078a6de32116aa496ffc3c461ec67)
Branch: v3.2
https://github.com/mongodb/mongo/commit/4075543b3ef659c26798e291615d5271438b7fc2

Comment by William Schultz (Inactive) [ 14/Nov/16 ]

Documentation changes: replSetStepDown previously required only one secondary to be caught up to the primary and electable before stepping down. Now it requires that a majority of nodes are caught up to the primary, and that at least one electable node exists among this majority.

Comment by Githook User [ 14/Nov/16 ]

Author:

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

Message: SERVER-26747 replSetStepDown waits for caught up majority with electable secondary
Branch: master
https://github.com/mongodb/mongo/commit/627f25d2e64078a6de32116aa496ffc3c461ec67

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