hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei-Chiu Chuang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-9123) Validation of a path ended with a '/'
Date Wed, 23 Sep 2015 14:41:04 GMT

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

Wei-Chiu Chuang commented on HDFS-9123:

[~andreina] Thanks for pointing out. Yes indeed it looks like the case, because when makeQualified()
is called, the path is normalized and trailing slashes are removed except for the root. I
am going to update the title/description of this jira.

> Validation of a path ended with a '/'
> -------------------------------------
>                 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
>         Attachments: HDFS-9123.001.patch, HDFS-9123.002.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,...
> However, if the source path is ended with a '/' path separator, the existing validation
for sub-directories fails. For example, copying from / to /abc would cause infinite copying,
until the disk space is filled up.

This message was sent by Atlassian JIRA

View raw message