I have initialized a raft node and added 2 peers one-by-one. While the first peer is added, the second peer addition fails with an error "leadership lost while committing log.".
It seems like after adding the first peer, the original leader (cluster-aus) is losing the leadership due to re-election. Not sure if this is normal behavior. What is the correct way to add the two peers to form the cluster?
The exact same example in a unit test code or example with the same workflow works fine. However, when testing with a set of VM nodes, it faces the below issues. Not sure if some timer values are influencing the protocol behavior.