作者回复: 1. 写wal + fsync wal: SyncRequestProcessor。 写wal :https://github.com/apache/zookeeper/blob/release-3.5.5/zookeeper-server/src/main/java/org/apache/zookeeper/server/SyncRequestProcessor.java#L122 fsync wal:https://github.com/apache/zookeeper/blob/release-3.5.5/zookeeper-server/src/main/java/org/apache/zookeeper/server/SyncRequestProcessor.java#L178 2. FinalRequestProcessor。 https://github.com/apache/zookeeper/blob/release-3.5.5/zookeeper-server/src/main/java/org/apache/zookeeper/server/FinalRequestProcessor.java#L112 3. SyncRequestProcessor。 https://github.com/apache/zookeeper/blob/release-3.5.5/zookeeper-server/src/main/java/org/apache/zookeeper/server/SyncRequestProcessor.java#L135
作者回复: 会的。但是这个时候ZooKeeper还没有给客户端发响应。