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


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