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

XMLWordPrintableJSON

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

      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:
              [DO NOT USE] Backlog - Replication Team
              Reporter:
              Scott Hernandez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: