[
https://issues.apache.org/jira/browse/HDFS-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz Wo (Nicholas), SZE updated HDFS-1624:
-----------------------------------------
Affects Version/s: 0.23.0
0.22.0
0.21.0
Status: Patch Available (was: Open)
> Append: The condition is incorrect for checking whether the last block is full
> ------------------------------------------------------------------------------
>
> Key: HDFS-1624
> URL: https://issues.apache.org/jira/browse/HDFS-1624
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 0.21.0, 0.22.0, 0.23.0
> Reporter: Tsz Wo (Nicholas), SZE
> Assignee: Tsz Wo (Nicholas), SZE
> Attachments: h1624_20110211.patch
>
>
> When the last block is full, the free space should be 0 but not equal to
> block size.
> {code}
> //In DFSOutputStream.DataStreamer.DataStreamer(..),
> if (freeInLastBlock == blockSize) {
> throw new IOException("The last block for file " +
> src + " is full.");
> }
> {code}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira