Comment 5 for bug 1704072

Revision history for this message
John A Meinel (jameinel) wrote :

I went in and did a manual 'rs.reconfig()' to set all of the machines to "votes": 1.
At which point I could do 'rs.stepDown()' on the current PRIMARY and it happily transferred the vote to a different machine (in this case machine-3).
However, because I now had an even number of voting machines, the logic was broken for peer-grouper, which assumes that it is starting with an odd number of voting machines, and only works pair-wise to keep an odd number of machines. (It may replace one machine with another, or add 2 machines, but it never removes/adds a single machine.)

I think the issue is that it ended up with 4 machines that kind-of wanted to be voting, and couldn't work out how to get to an odd number, along with the fact that you cannot directly demote the current primary out of the replicaset.