slfan1989 commented on code in PR #5158:
URL: https://github.com/apache/hadoop/pull/5158#discussion_r1029486994
##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java:
##########
@@ -460,7 +462,14 @@ public GetApplicationAttemptReportResponse
getApplicationAttemptReport(
ApplicationAttemptReport attemptReport = appAttempt
.createApplicationAttemptReport();
response =
GetApplicationAttemptReportResponse.newInstance(attemptReport);
+ RMAuditLogger.logSuccess(callerUGI.getUserName(),
+ AuditConstants.GET_APP_ATTEMPT_REPORT, "ClientRMService",
appAttemptId);
}else{
+ RMAuditLogger.logFailure(callerUGI.getShortUserName(),
+ AuditConstants.GET_APP_ATTEMPT_REPORT, "User does not have privilege
to "
+ + ApplicationAccessType.VIEW_APP.toString(), "ClientRMService",
Review Comment:
indentation Usually 5 characters
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]