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) Unfriendly message while running rename command if target exists
Date Thu, 18 Feb 2016 01:14:18 GMT

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

Xiaobing Zhou updated HDFS-9824:
--------------------------------
    Description: 
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:
-rw-r--r--   3 root hdfs       8526 2016-02-18 00:23 /tmp/src/1.log

Dest dir:
-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

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.

> Unfriendly 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:
> -rw-r--r--   3 root hdfs       8526 2016-02-18 00:23 /tmp/src/1.log
> Dest dir:
> -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
> 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