Github user edwardoliveira commented on a diff in the pull request:

    https://github.com/apache/zookeeper/pull/501#discussion_r181129644
  
    --- Diff: src/java/main/org/apache/zookeeper/server/ServerStats.java ---
    @@ -148,9 +150,23 @@ synchronized public void resetRequestCounters(){
             packetsReceived = 0;
             packetsSent = 0;
         }
    +
    +    public long getFsyncThresholdExceedCount() {
    +        return fsyncThresholdExceedCount;
    +    }
    +
    +    synchronized public void increaseFsyncThresholdExceedCount() {
    +        fsyncThresholdExceedCount++;
    +    }
    +
    +    synchronized void resetFsyncThresholdExceedCount() {
    --- End diff --
    
    It would be nice to expose this method via JMX too, imho.


---

Reply via email to