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

Tsz Wo (Nicholas), SZE commented on HDFS-5043:
----------------------------------------------

> ... 2.1.0 has been released. It is an incompatible release with previous 
> ones, and in this case this changes is compatible with 2.1.0.

2.1.0 is still in the voting phase.  If it does not pass the vote, we should 
merge this to 2.1.0.

You are right that this only changes the default value.  It is not an 
incompatible change.
                
> 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

Reply via email to