-
Notifications
You must be signed in to change notification settings - Fork 9k
YARN-11515. [Federation] Improve DefaultRequestInterceptor#init Code. #5752
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
...main/java/org/apache/hadoop/yarn/server/router/rmadmin/DefaultRMAdminRequestInterceptor.java
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
ApplicationClientProtocol.class); | ||
} | ||
}); | ||
user.doAs((PrivilegedExceptionAction<ApplicationClientProtocol>) () -> |
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.
The readability of the same in DefaultRMAdminRequestInterceptor is better.
I would split the line with the doAs from the lambda.
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.
Thanks for your suggestion! I will modify the code.
💔 -1 overall
This message was automatically generated. |
} catch (Exception e) { | ||
throw new YarnRuntimeException( | ||
"Unable to create the interface to reach the YarnRM", e); | ||
String message = "Error while creating Router RMClient Service"; |
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.
StringBuilder?
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
@goiri Can you help review this pr? Thank you very much! |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
@goiri Can you help to merge this pr into the trunk branch? Thank you very much! |
Description of PR
JIRA: YARN-11515. [Federation] Improve DefaultRequestInterceptor#init Code.
How was this patch tested?
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?