zehaoc2 commented on a change in pull request #2670:
URL: https://github.com/apache/hadoop/pull/2670#discussion_r574074367
##########
File path:
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
##########
@@ -8667,6 +8676,9 @@ public void logAuditEvent(boolean succeeded, String
userName,
}
sb.append("\t").append("proto=")
.append(Server.getProtocol());
+ if (cmd.equals(CMD_COMPLETE_FILE) && status != null) {
+ sb.append("\t").append("fileSize=").append(status.getLen());
Review comment:
There are some discussions around compatibility issues with audit logs.
@daryn-sharp @kihwal Could you please share your thoughts here?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]