[
https://issues.apache.org/jira/browse/HDFS-10385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15283084#comment-15283084
]
Chris Nauroth commented on HDFS-10385:
--------------------------------------
I'm wary of changing this behavior, especially in branch-2, because of
backwards-compatibility concerns. Even though the behavior differs from HDFS
semantics, applications often have different expectations of the local file
system. There is a risk that downstream ecosystem components or user
applications will start encountering errors, where previously the same calls to
the local file system succeeded.
> LocalFileSystem rename() function should return false when destination file
> exists
> ----------------------------------------------------------------------------------
>
> Key: HDFS-10385
> URL: https://issues.apache.org/jira/browse/HDFS-10385
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: fs
> Affects Versions: 2.6.0
> Reporter: Aihua Xu
> Assignee: Xiaobing Zhou
>
> Currently rename() of LocalFileSystem returns true and renames successfully
> when the destination file exists. That seems to have different behavior from
> DFSFileSystem.
> If they can have the same behavior, then we can use one call to do rename
> rather than checking if destination exists and then making rename() call.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]