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


   ZOOKEEPER-2678 could skip snapshot in diff sync, but diff txns are
   logged and committed after NEWLEADER ack. ZOOKEEPER-3911 moves txn
   logging before NEWLEADER ack, but the txn logging is asynchronous. So it
   is indeterminate whether diff txns have been persisted to disk or not
   after NEWLEADER ack.
   
   This commit try to sync and commit txn logs synchronously before ack to
   NEWLEADER thus provides strong guarantee that follower is in sync with
   leader after NEWLEADER ack received.
   
   This behavior is consistent with pre ZOOKEEPER-2678 and easy to test.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to