[ 
https://issues.apache.org/jira/browse/HDFS-4950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13714819#comment-13714819
 ] 

Colin Patrick McCabe commented on HDFS-4950:
--------------------------------------------

>From the FUSE mailing list, it appears that you can invalidate the attribute 
>cache using inode notify (but it may or may not be available from the high 
>level API)
                
> newly created files in fuse_dfs appear to be length 0 for a while due to 
> attribute caching
> ------------------------------------------------------------------------------------------
>
>                 Key: HDFS-4950
>                 URL: https://issues.apache.org/jira/browse/HDFS-4950
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: fuse-dfs
>    Affects Versions: 2.3.0
>            Reporter: Colin Patrick McCabe
>         Attachments: 2013-07-02.correct-noattr-trace.txt, 
> 2013-07-02.incorrect-attr-trace.txt
>
>
> For some reason, newly created files in fuse_dfs appear to be length 0 for a 
> while.
> {code}
> cmccabe@keter:~> echo hi > hi
> cmccabe@keter:~> mv hi /mnt/tmp/hi
> cmccabe@keter:~> ls -l /mnt/tmp
> total 0
> -rw-r--r-- 1 cmccabe users 0 Jul  2 13:24 hi
> cmccabe@keter:~> cat /mnt/tmp/hi
> cmccabe@keter:~> cat /mnt/tmp/hi
> hi
> {code}
> Disabling FUSE attribute caching fixes this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to