You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Constantine Peresypkin (JIRA)" <ji...@apache.org> on 2015/09/28 17:57:04 UTC

[jira] [Created] (HDFS-9164) hdfs-nfs connector fails on O_TRUNC

Constantine Peresypkin created HDFS-9164:
--------------------------------------------

             Summary: hdfs-nfs connector fails on O_TRUNC
                 Key: HDFS-9164
                 URL: https://issues.apache.org/jira/browse/HDFS-9164
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: HDFS
            Reporter: Constantine Peresypkin


Linux NFS client will issue `open(.. O_TRUNC); write()` when overwriting a file that's in nfs client cache (probably does it to not evict the inode). Which will spectacularly fail on hdfs-nfs with I/O error.
Example:
$ cp /some/file /to/hdfs/mount/
$ cp /some/file /to/hdfs/mount/
I/O error

The first write will pass if the file is not in cache, the second one will always fail.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)