[SERVER-19956] arbiter should use commit level for its optime in elections Created: 14/Aug/15  Updated: 07/Oct/15  Resolved: 22/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: Scott Hernandez (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-20579 arbiters should not start background ... Closed
Backwards Compatibility: Fully Compatible
Sprint: RPL 8 08/31/15, RPL A (10/09/15)
Participants:
Linked BF Score: 0

 Description   

Since arbiters do not sync data, they should use the commit level when responding to requestVote commands.
This means that they should respond 'nay' to a requestVote when the candidate's optime is behind the commit level. For non-arbiters, the usual logic is to respond 'nay' if the candidate's optime is behind the last op committed on the non-arbiter.
As part of this work, we need to ensure that an arbiter's heartbeats are properly updating its commit level.



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

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-19956: fix stale term handling/errors
Branch: master
https://github.com/mongodb/mongo/commit/8d11ca1a42b8c5d1c03028af53293b7a708d7fae

Comment by Githook User [ 22/Sep/15 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-19956: arbiter uses last committed time during elections
Branch: master
https://github.com/mongodb/mongo/commit/e82439349f2f17e881eac011ecf08064a7592c7d

Comment by Githook User [ 31/Aug/15 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: Revert "SERVER-19956: arbiter uses last committed time during electionswq"

This reverts commit ccbac2bd346c7bf422d1e13742842919932aafc6.
Branch: master
https://github.com/mongodb/mongo/commit/3939d3c9432542242cd387d4414b3ed811b8f6ac

Comment by Githook User [ 31/Aug/15 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-19956: arbiter uses last committed time during electionswq
Branch: master
https://github.com/mongodb/mongo/commit/ccbac2bd346c7bf422d1e13742842919932aafc6

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