hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira AJISAKA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5059) Unnecessary permission denied error when creating/deleting snapshots with a non-existent directory
Date Thu, 02 Jun 2016 17:10:59 GMT

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

Akira AJISAKA commented on HDFS-5059:
-------------------------------------

Hi [~boky01], I agree that this is a duplicate of HDFS-5111. Thank you for closing this issue,
but the resolution should be "Duplicate" instead of "Fixed". "Fixed" is used when the source
code is actually changed in this issue. I'll reopen this to change the resolution.

> Unnecessary permission denied error when creating/deleting snapshots with a non-existent
directory
> --------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-5059
>                 URL: https://issues.apache.org/jira/browse/HDFS-5059
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: snapshots
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Stephen Chu
>            Assignee: Andras Bokor
>            Priority: Trivial
>              Labels: newbie
>
> As a non-superuser, when you create and delete a snapshot but accidentally specify a
non-existent directory to snapshot, you will see an extra/unnecessary permission denied error
right after the "No such file or directory" error.
> {code}
> [schu@hdfs-snapshots-vanilla ~]$ hdfs dfs -deleteSnapshot /user/schuf/ snap1
> deleteSnapshot: `/user/schuf/': No such file or directory
> deleteSnapshot: Permission denied
> [schu@hdfs-snapshots-vanilla ~]$ hdfs dfs -createSnapshot /user/schuf/ snap1
> createSnapshot: `/user/schuf/': No such file or directory
> createSnapshot: Permission denied
> {code}
> As the HDFS superuser, instead of the "Permission denied" error you'll get an extra "Directory
does not exist" error.
> {code}
> [root@hdfs-snapshots-vanilla ~]# hdfs dfs -deleteSnapshot /user/schuf/ snap1
> deleteSnapshot: `/user/schuf/': No such file or directory
> deleteSnapshot: Directory does not exist: /user/schuf
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message