Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-17107

Replica set, with only one voter, invariants during election

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 3.0.0-rc8
    • Affects Version/s: 3.0.0-rc7
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL

      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.

            Assignee:
            scotthernandez Scott Hernandez (Inactive)
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: