[ 
https://issues.apache.org/jira/browse/HDFS-15259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yang Yun updated HDFS-15259:
----------------------------
    Attachment: HDFS-15259.001.patch
        Status: Patch Available  (was: Open)

> 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
>            Priority: Minor
>         Attachments: HDFS-15259.001.patch
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to