-
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.