hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-4864) fuse_dfs's rename can't rename over a file
Date Wed, 29 May 2013 18:28:21 GMT

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

Colin Patrick McCabe commented on HDFS-4864:

fuse_impls_open.c: remove deadcode that was causing compiler warning messages

fuse_impls_rename.c: use hdfsRenameExt with HDFS_RENAME_FLAG_OVERWRITE

hdfs.c / hdfs.h: add hdfsRenameExt, which takes a flags argument.  This argument allows you
to specify HDFS_RENAME_FLAG_OVERWRITE, to get the behavior that rename overwrites the destination
if it exists as a file.

jni_helper.c: add getJavaEnum, to help with manipulating the {{Options$Rename}} enum

test_libhdfs_threaded.c: test hdfsRenameExt (actually, this is the first rename test we have
in there)
> fuse_dfs's rename can't rename over a file
> ------------------------------------------
>                 Key: HDFS-4864
>                 URL: https://issues.apache.org/jira/browse/HDFS-4864
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: fuse-dfs
>            Reporter: Colin Patrick McCabe
>            Assignee: Colin Patrick McCabe
>         Attachments: HDFS-4864.001.patch
> {{fuse_dfs}}'s rename can't rename over a file, which causes a lot of stuff to not work,
including {{rsync}}.  It should be simple enough for libhdfs to provide a method that calls
{{FileSystem#rename}} with the 'overwrite' option.

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

View raw message