Yang Yun created HDFS-15259: ------------------------------- Summary: Reduce useless log information in FSNamesystemAuditLogger Key: HDFS-15259 URL: https://issues.apache.org/jira/browse/HDFS-15259 Project: Hadoop HDFS Issue Type: Improvement Components: logging, namenode Reporter: Yang Yun Assignee: Yang Yun
For most operations, the 'dst' is null, add checking before logging the 'dst' information in FSNamesystemAuditLogger {code:java} 2020-04-03 16:34:40,021 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem.audit: allowed=true ugi=user (auth:SIMPLE) ip=/127.0.0.1 cmd=listStatus src=/ dst=null perm=null proto=rpc 2020-04-03 16:35:16,329 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem.audit: allowed=true ugi=user (auth:SIMPLE) ip=/127.0.0.1 cmd=getfileinfo src=/ dst=null perm=null proto=rpc 2020-04-03 16:35:16,362 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem.audit: allowed=true ugi=user (auth:SIMPLE) ip=/127.0.0.1 cmd=mkdirs src=/user dst=null perm=yang:supergroup:rwxr-xr-x proto=rpc{code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org