-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
HDFS-17026. RBF: NamenodeHeartbeatService should update JMX report with configurable frequency #5691
Conversation
💔 -1 overall
This message was automatically generated. |
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.
Leave some nit comments inline. FYI. Please check the failed unit test and checkstyles.
...op-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RBFConfigKeys.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/apache/hadoop/hdfs/server/federation/router/NamenodeHeartbeatService.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/apache/hadoop/hdfs/server/federation/router/NamenodeHeartbeatService.java
Outdated
Show resolved
Hide resolved
🎊 +1 overall
This message was automatically generated. |
.../src/main/java/org/apache/hadoop/hdfs/server/federation/router/NamenodeHeartbeatService.java
Show resolved
Hide resolved
.../src/main/java/org/apache/hadoop/hdfs/server/federation/router/NamenodeHeartbeatService.java
Outdated
Show resolved
Hide resolved
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
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.
LGTM.
How does the AvailableSpaceResolver and related code behave when we fully disable updating JMX parameters?
.../src/main/java/org/apache/hadoop/hdfs/server/federation/router/NamenodeHeartbeatService.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/apache/hadoop/hdfs/server/federation/router/NamenodeHeartbeatService.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/apache/hadoop/hdfs/server/federation/router/NamenodeHeartbeatService.java
Outdated
Show resolved
Hide resolved
🎊 +1 overall
This message was automatically generated. |
.../src/main/java/org/apache/hadoop/hdfs/server/federation/router/NamenodeHeartbeatService.java
Outdated
Show resolved
Hide resolved
🎊 +1 overall
This message was automatically generated. |
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.
LGTM
@Hexiaoqiao @virajjasani @mkuchenbecker we have a few approvals already. Are you ok with closing this PR? |
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.
LGTM. +1.
Committed to trunk. Thanks @hchaverri for your contributions! And thanks every reviewers (Too many to mentioned folks)! |
…th configurable frequency. (apache#5691). Contributed by hchaverri. (apache#205)
…er frequency
Description of PR
Changes to the NamenodeHeartbeatService to update JMX reports on a configurable frequency or to disable JMX updates altogether, as opposed to updating it every time the service wakes up. This will help reduce the load on Namenodes in clusters with a high number of routers.
With these changes, we expect the NamenodeStatusReport to contain slightly outdated Namenode information, which should not impact critical paths for routers.
How was this patch tested?
Added unit test on TestRouterNamenodeMonitoring#testJmxRequestFrequency that tests the following configurations:
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?