[SERVER-17107] Replica set, with only one voter, invariants during election Created: 29/Jan/15  Updated: 06/Feb/15  Resolved: 29/Jan/15

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 3.0.0-rc7
Fix Version/s: 3.0.0-rc8

Type: Bug Priority: Critical - P2
Reporter: Scott Hernandez (Inactive) Assignee: Scott Hernandez (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

The freshness checker expects that it has to check other voting nodes, even though there are none:

[ReplicationExecutor] Invariant failure _targets.size() src/mongo/db/repl/freshness_checker.cpp 84

This will happen whenever there is only one voting member in a replica set config.

Note: The config must have more than one member.



 Comments   
Comment by Eric Milkie [ 29/Jan/15 ]

Author:

{u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-17017 permit elections when no other nodes are up
Branch: master
https://github.com/mongodb/mongo/commit/11c4de9946fbf466a7c70d4a7f4fce2638fa2e86

Comment by Eric Milkie [ 29/Jan/15 ]

Author:

{u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-17017 permit elections when no other nodes are up

(cherry picked from commit 11c4de9946fbf466a7c70d4a7f4fce2638fa2e86)
Branch: v3.0
https://github.com/mongodb/mongo/commit/5f9a67146a50a951c4c55115d9ccfea63642e5bd

Comment by Eric Milkie [ 29/Jan/15 ]

The failure is triggered whenever getMaybeUpHostAndPorts() returns an empty vector, which could happen with any number of nodes > 1 in a config.

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