[
https://issues.apache.org/jira/browse/HDFS-6027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13918487#comment-13918487
]
Colin Patrick McCabe commented on HDFS-6027:
--------------------------------------------
This is a duplicate of HDFS-2551. The issue is that HDFS doesn't allow other
readers to see what the writer wrote until {{DFSOutputStream#close}} has
finished. But fuse's close doesn't wait until that happens. Hence the
inconsistency you saw.
> hadoop-fuse-dfs is not strictly consistent for "cp" actions file contents.
> --------------------------------------------------------------------------
>
> Key: HDFS-6027
> URL: https://issues.apache.org/jira/browse/HDFS-6027
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: jay vyas
>
> Running the tests patched in
> https://issues.apache.org/jira/browse/BIGTOP-1221 demonstrate that the copy
> action is not consistent (if you remove the sleep directive, which is a
> workaround to allow the tests to pass).
> Although CP returns 1, and the namespaces appears to have file copied in it,
> the actual copied file has no contents. To reproduce easily, you can follow
> the bash recipe outlined in the JIRA above, or else, run the BIGTOP HDFS-FUSE
> smoke test, (after we commit the BIGTOP-1221 patch, which has now been
> submitted).
--
This message was sent by Atlassian JIRA
(v6.2#6252)