[SERVER-15670] 4-node set with 2 arbiters can't elect primary Created: 15/Oct/14  Updated: 11/Jul/16  Resolved: 20/Oct/14

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

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: Matt Dannenberg
Resolution: Done Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Operating System: ALL
Participants:

 Description   

Built from master (hash 4bea2a9) with "scons --replication-implementation=impl", started 4 nodes on localhost. Initiated with two arbiters:

> rs.initiate({_id: 'rs', members:[{_id:0, host: 'localhost:27017'}, {_id: 1, host:'localhost:27018'}, {_id: 2, host:'localhost:27019', arbiterOnly:true}, {_id: 3, host:'localhost:27020', arbiterOnly: true}]})
{ "ok" : 1 }

After waiting a minute I still have two secondaries and two arbiters, no primary. localhost:27017 logs:

2014-10-15T11:08:15.229-0400 I REPLSETS Standing for election
2014-10-15T11:08:15.230-0400 I REPLSETS replSet info electSelf
2014-10-15T11:08:15.230-0400 I REPLSETS replSet couldn't elect self, only received 2 votes, but needed at least 3
2014-10-15T11:08:17.230-0400 I REPLSETS Standing for election
...

And so on. The other secondary and both arbiters log continuously:

2014-10-15T11:08:23.235-0400 I REPLSETS replSetElect voting yea for localhost:27017 (0)



 Comments   
Comment by Githook User [ 20/Oct/14 ]

Author:

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

Message: SERVER-15670 use voteMajority instead of writeMajority in election scatter gather algorithm
Branch: master
https://github.com/mongodb/mongo/commit/44b4e84fbfe462679fcce6f3d5540ff85b3c8104

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