Github user anmolnar commented on the issue:
https://github.com/apache/zookeeper/pull/300
@afine You're right. I missed that syncWithLeader() call is on the same
path and in the same thread as adding commits to the queue.
In which case this must be right:
- syncWithLeader() blocks the follower,
- Leader sends commits for the sync process,
- Leader sends UPTODATE at the very end,
- Follower drains the commit queue
- Follower starts following.
---
