[ https://issues.apache.org/jira/browse/RATIS-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16301603#comment-16301603 ]
Tsz Wo Nicholas Sze commented on RATIS-178: ------------------------------------------- > The last server s2 may not able to join the group. s2 keeps starting a leader > election but s0 and s1 keep withhold the vote. This keeps repeating forever. The term of s2 keeps starting a new leader election and increase its term. s2's term is increased to 39 in the log message below. {code} 2017-12-22 16:48:22,290 INFO impl.LeaderElection (LeaderElection.java:askForVotes(127)) - s2: begin an election in Term 39 2017-12-22 16:48:22,292 DEBUG impl.RaftServerImpl (RaftServerImpl.java:requestVote(612)) - s1: receive requestVote(s2, group-C2DF75108086, 39, (t:0, i:0)) 2017-12-22 16:48:22,292 DEBUG impl.RaftServerImpl (RaftServerImpl.java:requestVote(612)) - s0: receive requestVote(s2, group-C2DF75108086, 39, (t:0, i:0)) 2017-12-22 16:48:22,292 INFO impl.RaftServerImpl (RaftServerImpl.java:requestVote(622)) - s1 Withhold vote from server s2 with term 39. This server:FOLLOWER group-C2DF75108086 s1:t2, leader=s0, voted=s0, raftlog=[(t:2, i:0)], conf=[s0:0.0.0.0:55968, s1:0.0.0.0:55969, s2:0.0.0.0:55970], old=null RUNNING, last rpc time from leader s0 is 19802ms 2017-12-22 16:48:22,292 INFO impl.RaftServerImpl (RaftServerImpl.java:requestVote(622)) - s0 Withhold vote from server s2 with term 39. This server: LEADER group-C2DF75108086 s0:t2, leader=s0, voted=s0, raftlog=[(t:2, i:0)], conf=[s0:0.0.0.0:55968, s1:0.0.0.0:55969, s2:0.0.0.0:55970], old=null RUNNING, last rpc time from leader s0 is -1 {code} Note that I has changed the log messages in the current code for debugging. > The third server cannot join the raft group > ------------------------------------------- > > Key: RATIS-178 > URL: https://issues.apache.org/jira/browse/RATIS-178 > Project: Ratis > Issue Type: Bug > Reporter: Tsz Wo Nicholas Sze > > When two servers starts in a 3-server group, they may elect a leader and then > start the service. Then, start the third server. It somehow fails to join > the group. -- This message was sent by Atlassian JIRA (v6.4.14#64029)