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