Details
-
Improvement
-
Resolution: Unresolved
-
Minor - P4
-
None
-
None
-
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.