hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaobing Zhou (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-9824) inconsistent message while running rename command if target exists
Date Wed, 24 Feb 2016 23:21:18 GMT

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

Xiaobing Zhou updated HDFS-9824:
--------------------------------
    Summary: inconsistent message while running rename command if target exists  (was: Unfriendly
message while running rename command if target exists)

> 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 unfriendly 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)

Mime
View raw message