[
https://issues.apache.org/jira/browse/HADOOP-10739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14041087#comment-14041087
]
Jason Lowe commented on HADOOP-10739:
-------------------------------------
For example:
{noformat}
$ hadoop fs -ls foo bar delme
-rw------- 3 somebody somegroup 0 2014-05-30 20:27 foo
-rw------- 3 somebody somegroup 0 2014-05-30 20:27 bar
Found 1 items
-rw------- 3 somebody somegroup 0 2014-05-30 20:28 delme/foo
$ hadoop fs -mv foo bar
mv: `bar': File exists
$ hadoop fs -mv foo delme/
mv: `foo': Input/output error
{noformat}
The error should be consistent. In both cases we should report a file exists
error.
> Renaming a file into a directory containing the same filename results in a
> confusing I/O error
> ----------------------------------------------------------------------------------------------
>
> Key: HADOOP-10739
> URL: https://issues.apache.org/jira/browse/HADOOP-10739
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 2.4.0
> Reporter: Jason Lowe
>
> Renaming a file to another existing filename says "File
> exists" but colliding with a file in a directory results in the cryptic
> "Input/output error".
--
This message was sent by Atlassian JIRA
(v6.2#6252)