Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.4.0
-
None
-
None
Description
When starting a new leadership, unnecessary snapshot transfers happen between new leader and followers. This is so because of multiple small bugs.
1) the comparison of zxids is done based on a new proposal, instead of the last logged zxid. (LearnerHandler.java ~ 297)
2) if follower is one zxid behind, the check of the interval of committed logs excludes the follower. (LearnerHandler.java ~ 277)
3) the bug reported in ZOOKEEPER-874 (commitLogs are empty after recover).
Attachments
Attachments
Issue Links
- depends upon
-
ZOOKEEPER-874 FileTxnSnapLog.restore does not call listener
- Closed
- Is contained by
-
ZOOKEEPER-1413 Use on-disk transaction log for learner sync up
- Resolved