[ https://issues.apache.org/jira/browse/HADOOP-1932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
dhruba borthakur updated HADOOP-1932: ------------------------------------- Attachment: fileCloseTest.patch The test was creating a file with two blocks. After writing to the two blocks (and before closing the file), it was verfying that the file size was 2 blocks. This wasn't always true because the client might not have flushed/closed the last block. The fix is to make the test create a file that is slightly larger than 2 blocks. When the client finished writing to the whole file, it is guaranteed that the first two blocks have been flushed to the datanodes. > Test dfs.TestFileCreation.testFileCreation failed on Windows > ------------------------------------------------------------ > > Key: HADOOP-1932 > URL: https://issues.apache.org/jira/browse/HADOOP-1932 > Project: Hadoop > Issue Type: Bug > Components: test > Affects Versions: 0.15.0 > Environment: Windows > Reporter: Mukund Madhugiri > Assignee: dhruba borthakur > Priority: Blocker > Attachments: fileCloseTest.patch > > > Fails with this assert error: > junit.framework.AssertionFailedError: filestatus.dat should be of size 16384 > at > org.apache.hadoop.dfs.TestFileCreation.testFileCreation(TestFileCreation.java:137) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.