kezhuw opened a new pull request, #2268:
URL: https://github.com/apache/zookeeper/pull/2268

   The cause is multifold:
   1. Leader will commit a proposal once quorum acked.
   2. Proposal is able to be committed in node's memory even if it has not been 
written to that node's disk.
   3. In case of disk error, the txn log could lag behind memory database.
   
   This way, node experienced temporary disk error will have hole in its txn 
log after re-join. Once restarted, data will loss.
   
   This commit complains the lag so to reload disk database to memory. This 
way, the node will not be able to become leader and sync missing txns from 
leader.
   
   Refs: ZOOKEEPER-4882, ZOOKEEPER-4925


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@zookeeper.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to