hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Li (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-4772) Add number of children in HdfsFileStatus
Date Sun, 14 Jul 2013 21:44:48 GMT

    [ https://issues.apache.org/jira/browse/HDFS-4772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13708129#comment-13708129

Brandon Li commented on HDFS-4772:

HdfsFileStatus only can be part of the response, not request, from HDFS to the client (correct
me if I missed anything here). Using 0 is convenient since HDFS just needs to change it only
when the inode is a directory with children inode before sending the response. 

However, if HdfsFileStatus could become part of the request to HDFS in the future, using -1
as default value is a better option to avoid confusion. 

> Add number of children in HdfsFileStatus
> ----------------------------------------
>                 Key: HDFS-4772
>                 URL: https://issues.apache.org/jira/browse/HDFS-4772
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: namenode
>    Affects Versions: 3.0.0
>            Reporter: Brandon Li
>            Assignee: Brandon Li
>            Priority: Minor
>             Fix For: 3.0.0, 2.1.0-beta, 2.3.0
>         Attachments: HDFS-4772.2.patch, HDFS-4772.3.patch, HDFS-4772.branch-2.patch,
> This JIRA is to track the change to return the number of children for a directory, so
the client doesn't need to make a getListing() call to calculate the number of dirents. This
makes it convenient for the client to check directory size change.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message