[ https://issues.apache.org/jira/browse/ZOOKEEPER-3019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16435920#comment-16435920 ]
ASF GitHub Bot commented on ZOOKEEPER-3019: ------------------------------------------- Github user nkalmar commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/501#discussion_r181150889 --- Diff: src/java/main/org/apache/zookeeper/server/persistence/FileTxnSnapLog.java --- @@ -55,6 +53,7 @@ private final File snapDir; private TxnLog txnLog; private SnapShot snapLog; + private ServerStats serverStats; --- End diff -- No, you're not missing anything, I messed up the refactor before the commit. I've written more unit tests so this will not go unnoticed next time. Will commit soon. Thanks! > Add a metric to track number of slow fsyncs > ------------------------------------------- > > Key: ZOOKEEPER-3019 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3019 > Project: ZooKeeper > Issue Type: Improvement > Components: jmx, server > Affects Versions: 3.5.3, 3.4.11 > Reporter: Norbert Kalmar > Assignee: Norbert Kalmar > Priority: Major > > Add jmx bean and Command to ZooKeeper server to expose the the number of slow > fsyncs as a metric. > FileTxnLog.commit() should count the number of times fsync exceeds > fsyncWarningThresholdMS. -- This message was sent by Atlassian JIRA (v7.6.3#76005)