hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eli Collins (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-470) libhdfs should handle 0-length reads from FSInputStream correctly
Date Sat, 14 Jul 2012 00:08:34 GMT

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

Eli Collins updated HDFS-470:
-----------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.1-alpha
     Hadoop Flags: Reviewed
           Status: Resolved  (was: Patch Available)

+1  looks good

I've committed this to trunk and merged to branch-2.  Thanks Colin.
                
> libhdfs should handle 0-length reads from FSInputStream correctly
> -----------------------------------------------------------------
>
>                 Key: HDFS-470
>                 URL: https://issues.apache.org/jira/browse/HDFS-470
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Pete Wyckoff
>            Assignee: Colin Patrick McCabe
>            Priority: Minor
>             Fix For: 2.0.1-alpha
>
>         Attachments: HDFS-470.001.patch, HDFS-470.002.patch
>
>
> libhdfs changes Java read semantics to posix semantics. As such, if Hadoop ever returns
0 bytes read, libhdfs should return -1 and set errno = EINTER.

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