[ 
https://issues.apache.org/jira/browse/HDFS-9123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14907794#comment-14907794
 ] 

Hudson commented on HDFS-9123:
------------------------------

FAILURE: Integrated in Hadoop-Hdfs-trunk #2357 (See 
[https://builds.apache.org/job/Hadoop-Hdfs-trunk/2357/])
HDFS-9123. Copying from the root to a subdirectory should be forbidden. 
(Wei-Chiu Chuang via Yongjun Zhang) (yzhang: rev 
3187dbd7a8b6376134a00e5c9c4693d8eb762c9d)
* 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSShell.java
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* 
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/CommandWithDestination.java


> Copying from the root to a subdirectory should be forbidden
> -----------------------------------------------------------
>
>                 Key: HDFS-9123
>                 URL: https://issues.apache.org/jira/browse/HDFS-9123
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: fs
>            Reporter: Wei-Chiu Chuang
>            Assignee: Wei-Chiu Chuang
>            Priority: Minor
>             Fix For: 2.8.0
>
>         Attachments: HDFS-9123.001.patch, HDFS-9123.002.patch, 
> HDFS-9123.003.patch, HDFS-9123.004.patch
>
>
> HDFS forbids copying from a directory to its subdirectory (e.g. hdfs dfs -cp 
> /abc /abc/xyz) as otherwise it could cause infinite copying (/abc/xyz/xyz, 
> /abc/xyz/xyz, /abc/xyz/xyz/xyz,... etc)
> However, the existing path validation fails if the source path is the root, 
> causing infinite copying, until the disk space is filled up.



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

Reply via email to