hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5043) For HdfsFileStatus, set default value of childrenNum to -1 instead of 0 to avoid confusing applications
Date Wed, 31 Jul 2013 10:55:49 GMT

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

Hudson commented on HDFS-5043:
------------------------------

SUCCESS: Integrated in Hadoop-Yarn-trunk #287 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/287/])
HDFS-5043. For HdfsFileStatus, set default value of childrenNum to -1 instead of 0 to avoid
confusing applications. Contributed by Brandon Li (brandonli: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1508694)
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/protocolPB/PBHelper.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/web/JsonUtil.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/proto/hdfs.proto

                
> For HdfsFileStatus, set default value of childrenNum to -1 instead of 0 to avoid confusing
applications
> -------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-5043
>                 URL: https://issues.apache.org/jira/browse/HDFS-5043
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Brandon Li
>            Assignee: Brandon Li
>             Fix For: 3.0.0, 2.3.0
>
>         Attachments: HDFS-5043.patch, HDFS-5043.patch.2
>
>
> Per discussion in HDFS-4772, default value 0 can confuse application since it can't tell
that childNum is not supported by the server or the directory has no child.
> Use -1 instead to avoid this confusion.

--
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

Mime
View raw message