-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HDFS-15808. Add metrics for FSNamesystem read/write lock hold long time #2668
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
Conversation
💔 -1 overall
This message was automatically generated. |
Failed junit tests Sorry. I didn't update those two unit tests, and they worked fine locally. |
@xkrogen |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
Failed junit tests | hadoop.hdfs.server.blockmanagement.TestUnderReplicatedBlocks Sorry. I didn't update this unit tests, and they worked fine locally. |
💔 -1 overall
This message was automatically generated. |
Failed junit tests Those failed unit tests are unrelated to the change. |
...oject/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystemLock.java
Outdated
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
Just reposting my comment from the jira for visibility. The patch looks fine, but I doubt the metric will be useful in its current form. Monotonically increasing counter doesn't tell you much when plotted. Over time it just becomes an incredibly large number, hard to see its fluctuations. And you cannot set alerts if the threshold is exceeded often. |
Hey @shvachko , thank you for your comments and suggestions. I replied to you in JIRA. |
💔 -1 overall
This message was automatically generated. |
Failed junit tests Those failed unit tests were unrelated to the change. And they worked fine locally. |
Hi @anuengineer , could you please review again? Let's see if there are any other questions. Thank you. |
Hi @arp7 , could you take a quick look at this? Let's see if there are any other questions. Thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 LGTM
Hi @shvachko , I uploaded a patch for branch-3.3 in JIRA.
Thanks @dineshchitlangia for the review. |
Hi @shvachko , I uploaded a patch for branch-3.3 in JIRA, please help to review it. Thank you. |
…me. (#2668) Contributed by tomscut.
Close this PR because the associated patch has been merged. |
…me. (apache#2668) Contributed by tomscut.
JIRA: https://issues.apache.org/jira/browse/HDFS-15808
To monitor how often read/write locks exceed thresholds, we can add two metrics(ReadLockWarning/WriteLockWarning), which are exposed in JMX.