You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Oleksandr Alesinskyy (JIRA)" <ji...@apache.org> on 2012/05/04 16:40:49 UTC

[jira] [Reopened] (HDFS-3362) Javadoc for FileStatus.getLen() is incorrect

     [ https://issues.apache.org/jira/browse/HDFS-3362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleksandr Alesinskyy reopened HDFS-3362:
----------------------------------------


That's true - but it is not fixed in 1.x branches, e.g. branch-1, which is marked as "sustaining branch for updates to Hadoop 1.0.0.". That means future minor version of 1.x.x likely would not have this fix.

 
                
> Javadoc for FileStatus.getLen() is incorrect
> --------------------------------------------
>
>                 Key: HDFS-3362
>                 URL: https://issues.apache.org/jira/browse/HDFS-3362
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: documentation, hdfs client
>    Affects Versions: 0.20.2, 1.0.2
>            Reporter: Oleksandr Alesinskyy
>            Priority: Minor
>
> {code}
>   /* 
>    * @return the length of this file, in blocks
>    */
>   public long getLen() {
>     return length;
>   }
> {code}
> in reality it return a length not in blocks but in bytes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira