[SERVER-20346] Election timeout timer logic for transitioning to candidate Created: 10/Sep/15  Updated: 25/Jan/17  Resolved: 17/Sep/15

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.1.9

Type: Task Priority: Major - P3
Reporter: Eric Milkie Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-20373 implement electionTimeout timer for p... Closed
Backwards Compatibility: Fully Compatible
Sprint: RPL 9 (09/18/15)
Participants:

 Description   

Rather than transitioning to candidate at the first sign of a dead primary (e.g. heartbeat to last known primary fails), we need to instead utilize a timeout mechanism where we only transition to candidate if we do not hear from a primary within the electionTimeout period.



 Comments   
Comment by Githook User [ 17/Sep/15 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-20346 Changed triggering of elections under protocol version 1 to be timer-based.
Branch: master
https://github.com/mongodb/mongo/commit/aa190f0e2b34d29231b2ddd6660e641821071c1f

Comment by Githook User [ 17/Sep/15 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-20346 added ReplicationCoordinatorImpl::waitForMemberState_forTest()
Branch: master
https://github.com/mongodb/mongo/commit/09baa0462bdace2c7c8759ac610996b60a0bc561

Comment by Githook User [ 17/Sep/15 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-20346 renamed ReplicationCoordinatorImpl::_priorityTakeover() to _startElectSelfIfEligibleV1()
Branch: master
https://github.com/mongodb/mongo/commit/2f35b9a4e2ff28a0e4bbe5edaeba424b4e74d92d

Comment by Githook User [ 17/Sep/15 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-20346 renamed TopologyCoordinator::stagePriorityTakeoverIfElectable() to becomeCandidateIfElectable()
Branch: master
https://github.com/mongodb/mongo/commit/76afd18542dfef5f91e58397eb9ff0527714b378

Comment by Githook User [ 17/Sep/15 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-20346 added ScheduleElection heartbeat response action
Branch: master
https://github.com/mongodb/mongo/commit/7bcd448c8f545e77e9f17c55a59b3ac4abe365d4

Comment by Githook User [ 17/Sep/15 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-20346 NetworkInterfaceMock::runUntil() returns now()
Branch: master
https://github.com/mongodb/mongo/commit/6b32533b12fc331c91a372a9fa05692d75466280

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