You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Zhe Zhang (JIRA)" <ji...@apache.org> on 2017/08/31 06:34:00 UTC
[jira] [Commented] (HDFS-958) Remove uneccessary creation of
FileStatus objects in NameNode
[ https://issues.apache.org/jira/browse/HDFS-958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16148519#comment-16148519 ]
Zhe Zhang commented on HDFS-958:
--------------------------------
Actually it does make sense to at least make it an option to avoid creating a {{FileStatus}} for each audit log. {{FSNamesystem#logAuditEvent}} only uses the {{FileStatus}} to log the permission, which is not really that necessary in many environments.
> Remove uneccessary creation of FileStatus objects in NameNode
> -------------------------------------------------------------
>
> Key: HDFS-958
> URL: https://issues.apache.org/jira/browse/HDFS-958
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: namenode
> Reporter: Hairong Kuang
> Assignee: Hairong Kuang
> Attachments: reduceFileStatus.patch
>
>
> NameNode creates FileStatus objects when
> 1. write audit logs
> 2. change file's lease
> The uses of FileStatus in these places are not necessary. We could use INode instead.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org