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

replSetMaintenance should not fail if the node is in candidate state

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Replication
    • Replication
    • 0

    Description

      If you run the replSetMaintenance command on a SECONDARY that is currently running an election, you get an error:

      { "ok" : 0, "errmsg" : "currently running for election", "code" : 95 }

      This is not ideal, and makes the command hard to use in a script. Instead, the behavior should be that the election is cancelled and the node enters maintenance mode successfully.

      Attachments

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: