Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZOOKEEPER-3019 add metric for slow fsyncs count #510

Closed
wants to merge 4 commits into from

Conversation

nkalmar
Copy link
Contributor

@nkalmar nkalmar commented Apr 30, 2018

Backported fsync metric count from master.

@nkalmar nkalmar force-pushed the branch-3.4 branch 2 times, most recently from d240f39 to b976a03 Compare May 28, 2018 13:32
if(serverStats != null) {
serverStats.incrementFsyncThresholdExceedCount();
} else {
LOG.warn("fsyncWarningThresholdMS exceeded, but serverStats not added in FileTxnLog!");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This log seems redundant to me, we can tell the fsync threshold exceeded from the log at line 340, and serverStats is set, we know there will be stats in serverStats, otherwise we know it's not set.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, sounds fair. I will remove it.
Thanks for pointing this out!

asfgit pushed a commit that referenced this pull request Jun 8, 2018
Backported fsync metric count from master.

Author: Norbert Kalmar <nkalmar@yahoo.com>

Reviewers: Andor Molnar <andor@apache.org>

Closes #510 from nkalmar/branch-3.4 and squashes the following commits:

0ec9213 [Norbert Kalmar] ZOOKEEPER-3019 remove redundant log
63d3cb9 [Norbert Kalmar] Merge branch 'branch-3.4' of github.com:apache/zookeeper into branch-3.4
deb2543 [Norbert Kalmar] Merge branch 'branch-3.4' of github.com:apache/zookeeper into branch-3.4
336a83b [Norbert Kalmar] ZOOKEEPER-3019 add metric for slow fsyncs count
@anmolnar
Copy link
Contributor

anmolnar commented Jun 8, 2018

Merged to branch-3.4. Please close the PR @nkalmar
Thanks!

@nkalmar nkalmar closed this Jun 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants