adoroszlai commented on code in PR #3531:
URL: https://github.com/apache/ozone/pull/3531#discussion_r901632745
##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java:
##########
@@ -308,4 +308,14 @@ protected Map<String, String> getAuditParameters() {
}
return res;
}
+
+ protected void auditWriteFailure(AuditAction action, Throwable ex) {
+ AUDIT.logWriteFailure(
+ buildAuditMessageForFailure(action, getAuditParameters(), ex));
+ }
+
+ protected void auditReadFailure(AuditAction action, Exception ex) {
+ AUDIT.logReadFailure(
+ buildAuditMessageForFailure(action, getAuditParameters(), ex));
+ }
Review Comment:
Extracting these is a good idea. Did you intend to change only parts of the
code which were touched anyway? Would you be converting other call places in a
future task? Also, what about `audit(Read|Write)Success`?
--
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]