Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper, mail # dev - Review Request: ZOOKEEPER-1413: Use on-disk transaction log for learner sync up


Copy link to this message
-
Review Request: ZOOKEEPER-1413: Use on-disk transaction log for learner sync up
Thawan Kooburat 2013-05-20, 05:40

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/11231/
-----------------------------------------------------------

Review request for zookeeper.
Description
-------

ZOOKEEPER-1413: Use on-disk transaction log for learner sync up

- Use txnlog for learner synchronization if learner fall too far behind
- Refactoring LearnerHandler to deal with different cases of handling learner synchronization  
This addresses bug https://issues.apache.org/jira/browse/ZOOKEEPER-1413.
    https://issues.apache.org/jira/browse/https://issues.apache.org/jira/browse/ZOOKEEPER-1413
Diffs
-----

  /src/java/main/org/apache/zookeeper/server/TxnLogProposalIterator.java PRE-CREATION
  /src/java/main/org/apache/zookeeper/server/ZKDatabase.java 1483440
  /src/java/main/org/apache/zookeeper/server/persistence/FileTxnLog.java 1483440
  /src/java/main/org/apache/zookeeper/server/persistence/FileTxnSnapLog.java 1483440
  /src/java/main/org/apache/zookeeper/server/persistence/TxnLog.java 1483440
  /src/java/main/org/apache/zookeeper/server/quorum/LearnerHandler.java 1483440
  /src/java/test/org/apache/zookeeper/server/quorum/LearnerHandlerTest.java PRE-CREATION
  /src/java/test/org/apache/zookeeper/test/FollowerResyncConcurrencyTest.java 1483440
  /src/java/test/org/apache/zookeeper/test/GetProposalFromTxnTest.java PRE-CREATION
  /src/java/test/org/apache/zookeeper/test/LoadFromLogTest.java 1483440

Diff: https://reviews.apache.org/r/11231/diff/
Testing
-------

- unit tests
- ran in prod for more than half a year
Thanks,

Thawan Kooburat