You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Yi Liu (JIRA)" <ji...@apache.org> on 2014/12/30 04:09:13 UTC
[jira] [Created] (HADOOP-11452) Revisit
org.apache.hadoop.fs.FileSystem#rename
Yi Liu created HADOOP-11452:
-------------------------------
Summary: Revisit org.apache.hadoop.fs.FileSystem#rename
Key: HADOOP-11452
URL: https://issues.apache.org/jira/browse/HADOOP-11452
Project: Hadoop Common
Issue Type: Task
Components: fs
Reporter: Yi Liu
Assignee: Yi Liu
Currently in {{FileSystem}}, {{rename}} with _Rename options_ is protected and with _deprecated_ annotation. And the default implementation is not atomic.
So this method is not able to be used outside. On the other hand, HDFS has a good and atomic implementation. (Also an interesting thing in {{DFSClient}}, the _deprecated_ annotations for these two methods are opposite).
It makes sense to make public for {{rename}} with _Rename options_, since it's atomic for rename+overwrite, also it saves RPC calls if user desires rename+overwrite.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)