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-1624) Append: The condition is incorrect for checking whether the last block is full
Date Fri, 11 Feb 2011 08:24:57 GMT

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

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

    Attachment: h1624_20110211.patch

h1624_20110211.patch: fixing the condition.

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

        

Mime
View raw message