replSetMaintenance should not fail if the node is in candidate state

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Replication
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            [DO NOT USE] Backlog - Replication Team
            Reporter:
            Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: