You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Xiaobing Zhou (JIRA)" <ji...@apache.org> on 2016/02/26 23:42:18 UTC
[jira] [Resolved] (HDFS-9824) inconsistent message while running
rename command if target exists
[ 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)