[
https://issues.apache.org/jira/browse/HDFS-860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843808#action_12843808
]
Tom White commented on HDFS-860:
--------------------------------
Brian,
Another solution would be to return 0 if the size to truncate to is the same as
the file's size. This would cover the scp case, without breaking error codes,
no?
BTW what OS are you using? I haven't been able to reproduce this on Centos or
Ubuntu, as scp doesn't seem to be calling truncate.
> fuse-dfs truncate behavior causes issues with scp
> -------------------------------------------------
>
> Key: HDFS-860
> URL: https://issues.apache.org/jira/browse/HDFS-860
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: contrib/fuse-dfs
> Reporter: Brian Bockelman
> Priority: Minor
> Attachments: HDFS-860.patch
>
>
> For whatever reason, scp issues a "truncate" once it's written a file to
> truncate the file to the # of bytes it has written (i.e., if a file is X
> bytes, it calls truncate(X)).
> This fails on the current fuse-dfs.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.