[ 
https://issues.apache.org/jira/browse/HADOOP-1932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529935
 ] 

Raghu Angadi commented on HADOOP-1932:
--------------------------------------

Isn't it true that no blocks are guaranteed to be present unless the file is 
closed? Adding one more byte, only makes the issue less probable, right?

Flusing to datanodes is guaranteed (by implementation, not by contract) even 
while writing exactly two blocks. What is not guaranteed is datanodes reporting 
the block to Namenode.

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

Reply via email to