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

A replSetFreeze during an election will ignore voting and transition to primary immediately

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.0
    • Component/s: Replication
    • Labels:
      None
    • Replication
    • Fully Compatible
    • ALL
    • 0

      See ReplicationCoordinatorImpl::processReplSetFreeze:

          if (_topCoord->getRole() == TopologyCoordinator::Role::candidate) {
              // If we just unfroze and ended our stepdown period and we are a one node replica set,
              // the topology coordinator will have gone into the candidate role to signal that we
              // need to elect ourself.
              _performPostMemberStateUpdateAction(kActionWinElection);
          }
      

      Later, when the votes are collected (and the election ends normally) an invariant will trip.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: