hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-3101) cannot read empty file using webhdfs
Date Thu, 15 Mar 2012 19:40:38 GMT

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

Tsz Wo (Nicholas), SZE updated HDFS-3101:
-----------------------------------------

    Attachment: h3101_20120315.patch

Hi Zhanwei,

Good catch.  Thanks a lot for filing this bug.  Here is a patch

h3101_20120315.patch: allow reading on zero size file.

Would you mind also testing the patch?
                
> cannot read empty file using webhdfs
> ------------------------------------
>
>                 Key: HDFS-3101
>                 URL: https://issues.apache.org/jira/browse/HDFS-3101
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs client
>    Affects Versions: 0.23.1
>            Reporter: Zhanwei.Wang
>            Assignee: Tsz Wo (Nicholas), SZE
>         Attachments: h3101_20120315.patch
>
>
> STEP:
> 1, create a new EMPTY file
> 2, read it using webhdfs.
> RESULT:
> expected: get a empty file
> I got: {"RemoteException":{"exception":"IOException","javaClassName":"java.io.IOException","message":"Offset=0
out of the range [0, 0); OPEN, path=/testFile"}}
> First of all, [0, 0) is not a valid range, and I think read a empty file should be OK.

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

        

Mime
View raw message