AlphaCanisMajoris

Results 2 issues of AlphaCanisMajoris

This fix aims to fix a bunch of issues in follower's syncWithLeader(). e.g., [ZOOKEEPER-4394](https://issues.apache.org/jira/browse/ZOOKEEPER-4394): NullPointerException when follower receives COMMIT after replying NEWLEADER ack in syncWithLeader(). Explanation: In syncWithLeader(), a follower...

In brief, committed logs might be lost due to the follower's **asynchronous** transaction logging when replying ACK of NEWLEADER during the SYNC phase. See [ZOOKEEPER-4646](https://issues.apache.org/jira/browse/ZOOKEEPER-4646) for details on the symptom,...