hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhilei Xu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-6580) 2 internal APIs in FSNamesystem use raw dir.getFileInfo() to getAuditFileInfo()
Date Fri, 20 Jun 2014 18:31:25 GMT
Zhilei Xu created HDFS-6580:
-------------------------------

             Summary: 2 internal APIs in FSNamesystem use raw dir.getFileInfo() to getAuditFileInfo()
                 Key: HDFS-6580
                 URL: https://issues.apache.org/jira/browse/HDFS-6580
             Project: Hadoop HDFS
          Issue Type: Improvement
          Components: namenode
            Reporter: Zhilei Xu


In FSNamesystem.java, getAuditFileInfo() is the canonical way to get file info for auditing
purpose. getAuditFileInfo() returns null when auditing is disabled, and calls dir.getFileInfo()
when auditing is enabled.

2 internal APIs, startFileInt() and mkdirsInt() mistakenly use the raw dir.getFileInfo() to
get file info for auditing. Should change to getAuditFileInfo().



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message