Description
The leader code is setting the last processed zxid to the first of the new epoch even before connecting to a quorum of followers. Because the leader code sets this value before connecting to a quorum of followers (Leader.java:281) and the follower code throws an IOException (Follower.java:73) if the leader epoch is smaller, we have that when the false leader drops leadership and becomes a follower, it finds a smaller epoch and kills itself.
Attachments
Attachments
Issue Links
- relates to
-
ZOOKEEPER-335 zookeeper servers should commit the new leader txn to their logs.
- Closed