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

Send a replSetStepUp command to an eligible candidate on stepdown

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.7, 4.0.2, 4.1.1
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.0, v3.6
    • Sprint:
      Repl 2018-07-02, Repl 2018-07-16

      Description

      After stepdown finishes, the primary sends a replSetStepUp command to a caught-up candidate. If there is more than one viable candidate whose last applied optime is the same as the primary’s, a candidate with the highest priority will be chosen. If that still ties, the node with the lowest index in config.members is chosen. The replSetStepUp command is scheduled to be sent immediately and stepdown doesn’t wait for the response of replSetStepUp command before returning to the user. The chosen secondary will start an election immediately without waiting for the election timeout.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              vesselina.ratcheva Vesselina Ratcheva
              Reporter:
              siyuan.zhou Siyuan Zhou
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: