hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HDFS-691) Limitation on java.io.InputStream.available()
Date Wed, 28 Oct 2009 20:48:59 GMT

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

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

    Attachment: h691_20091028.patch

h691_20091028.patch: check limit before return.

No new test is added since the change is simple and there is no easy way to implement a new
test.

> Limitation on java.io.InputStream.available()
> ---------------------------------------------
>
>                 Key: HDFS-691
>                 URL: https://issues.apache.org/jira/browse/HDFS-691
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs client
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Tsz Wo (Nicholas), SZE
>         Attachments: h691_20091028.patch
>
>
> java.io.InputStream.available() returns an int which has the max value 2^31-1 = 2GB -
1B.  It won't work if the number of available bytes is >= 2GB.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message