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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 3.0.0
    • None
    • Replication
    • None
    • Fully Compatible
    • ALL
    • 0

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-repl Backlog - Replication Team
              scotthernandez Scott Hernandez
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: