[ 
https://issues.apache.org/jira/browse/HDFS-9824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xiaobing Zhou resolved HDFS-9824.
---------------------------------
      Resolution: Invalid
    Release Note: I verified this doesn't exist in 3.0 any more. Closed it as 
Invalid.

> inconsistent message while running rename command if target exists
> ------------------------------------------------------------------
>
>                 Key: HDFS-9824
>                 URL: https://issues.apache.org/jira/browse/HDFS-9824
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Xiaobing Zhou
>            Assignee: Xiaobing Zhou
>
> In the following case, the message <mv: `/tmp/src/1.log': Input/output error> 
> is not friendly, it's better to show <mv: `/tmp/dest/1.log': File exists>.
> Source dir:
> {noformat}
> -rw-r--r--   3 root hdfs       8526 2016-02-18 00:23 /tmp/src/1.log
> {noformat}
> Dest dir:
> {noformat}
> -rw-r--r--   3 root hdfs       8526 2016-02-17 22:00 /tmp/dest/1.log
> -rw-r--r--   3 root hdfs       8526 2016-02-18 00:17 /tmp/dest/2.log
> -rw-r--r--   3 root hdfs       8526 2016-02-18 00:18 /tmp/dest/3.log
> -rw-r--r--   3 root hdfs       8526 2016-02-18 00:18 /tmp/dest/4.log
> {noformat}
> Running <hadoop fs -mv /tmp/src/1.log /tmp/dest> displays inconsistent 
> message that complains input/output error, while <hadoop fs -mv 
> /tmp/src/1.log /tmp/dest/1.log> will show <mv: `/tmp/dest/1.log': File 
> exists>. The behavior of the two should be similar.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to