pengfei created ZOOKEEPER-4040: ---------------------------------- Summary: java.io.IOException: Leaders epoch, 1 is less than accepted epoch, 2 Key: ZOOKEEPER-4040 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4040 Project: ZooKeeper Issue Type: Bug Components: server Affects Versions: 3.5.5 Reporter: pengfei Attachments: image-2020-12-28-18-20-07-842.png, image-2020-12-28-18-23-14-073.png, image-2020-12-28-18-25-31-960.png, image-2020-12-28-18-28-07-015.png
h4. errorlog: java.io.IOException: Leaders epoch, 1 is less than accepted epoch, 2java.io.IOException: Leaders epoch, 1 is less than accepted epoch, 2 at org.apache.zookeeper.server.quorum.Learner.registerWithLeader(Learner.java:353) at org.apache.zookeeper.server.quorum.Follower.followLeader(Follower.java:78) at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:1271)2020-12-28 18:09:25,176 [myid:2] - INFO [QuorumPeer[myid=2](plain=/0:0:0:0:0:0:0:0:2182)(secure=disabled):Follower@201] - shutdown calledjava.lang.Exception: shutdown Follower at org.apache.zookeeper.server.quorum.Follower.shutdown(Follower.java:201) at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:1275) h4. sample: cluster all servers server1,server2,server3 * start server1 and server2 ,then shutdown them when they arrive below, now the accpetedEpoch of server2 is 1 , server1 is 0, server3 is 0 !image-2020-12-28-18-23-14-073.png! * then repeat step 1 , now the accpetedEpoch of server1 is 0,server2 is 2,server3 is 0 !image-2020-12-28-18-25-31-960.png! * then start server1 and server3 , wait unti the leader of the cluster is server3 , start server2 ,now generate the error below !image-2020-12-28-18-28-07-015.png! -- This message was sent by Atlassian Jira (v8.3.4#803005)