You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by GitBox <gi...@apache.org> on 2022/04/02 12:06:05 UTC

[GitHub] [zookeeper] kezhuw opened a new pull request #1848: ZOOKEEPER-3023: Sync and commit diff log entries before NEWLEADER ack

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: notifications-unsubscribe@zookeeper.apache.org

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