-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
YARN-11121:Check GetClusterMetrics Request parameter is null #4250
Conversation
@goiri @bibinchundatt Could you kindly help in reviewing this PR? Thanks. |
💔 -1 overall
This message was automatically generated. |
…ts of the metrics, modify the Unit Test so that the test meets the expectations
I need to ask a question, is it necessary to use a multi-threaded method when acquiring sub-clusters, can it not be traversed directly through a for loop? I tried to rewrite part of the code, can you help me to review it. This should be more readable and not make much difference in performance.
|
💔 -1 overall
This message was automatically generated. |
When the PR was automatically checked, it was found that the test could not pass, and the following error was reported in the local test.
|
@hchaverri Hi,hchaverri,I found that your submission in HADOOP-18167 may cause an online bug in Yarn. The code you submitted will cause the DelegationTokenSecretManagerMetrics to be initialized twice. Please checkYARN-11123 |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
Description of PR
YARN-11121 - Conditional judgment Add in getClusterMetrics
https://issues.apache.org/jira/browse/YARN-11121
I added a judgment condition to ensure that when the request is empty, the metrics can be effectively counted
How was this patch tested?
Added new unit test to check if request is empty
For code changes:
The original code logic does not judge that the request is empty. In this case, add a judgment condition to ensure that when it is empty, it can be effectively processed