Github user nkalmar commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/501#discussion_r181063500 --- Diff: src/java/main/org/apache/zookeeper/server/ServerStats.java --- @@ -32,6 +32,7 @@ private long minLatency = Long.MAX_VALUE; private long totalLatency = 0; private long count = 0; + private long fsyncThresholdExceedCount = 0L; --- End diff -- Which would also remove the overhead imposed by synchronised. Thanks for the tip, i will make the changes!
---