-
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-8859. Add audit logs for router service #3607
Conversation
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
...yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/RouterAuditLogger.java
Show resolved
Hide resolved
...yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/RouterAuditLogger.java
Show resolved
Hide resolved
...yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/RouterAuditLogger.java
Outdated
Show resolved
Hide resolved
@@ -310,7 +314,9 @@ public GetNewApplicationResponse getNewApplication( | |||
|
|||
routerMetrics.incrAppsFailedCreated(); | |||
String errMsg = "Fail to create a new application."; | |||
LOG.error(errMsg); | |||
RouterAuditLogger.logFailure(user.toString(), |
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.
If we will keep doing user.toString() we probably should add a method with user as an arg and do the toStirng there.
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.
On second thought, I think user.getShortUserName should be used instead of adding ugi info.
🎊 +1 overall
This message was automatically generated. |
@goiri, Thanks for the review. I've addressed the comments. Can you please help with review further ? |
...yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/RouterAuditLogger.java
Show resolved
Hide resolved
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 overall
This message was automatically generated. |
Co-authored-by: Minni Mittal <[email protected]>
Description of PR
How was this patch tested?
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?