hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5300) FSNameSystem#deleteSnapshot() should not check owner in case of permissions disabled
Date Fri, 04 Oct 2013 21:41:43 GMT

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

Hudson commented on HDFS-5300:
------------------------------

SUCCESS: Integrated in Hadoop-trunk-Commit #4540 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/4540/])
HDFS-5300. FSNameSystem#deleteSnapshot() should not check owner in case of permissions disabled.
Contributed by Vinay. (jing9: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1529294)
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/snapshot/TestSnapshotDeletion.java


> FSNameSystem#deleteSnapshot() should not check owner in case of permissions disabled
> ------------------------------------------------------------------------------------
>
>                 Key: HDFS-5300
>                 URL: https://issues.apache.org/jira/browse/HDFS-5300
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 3.0.0, 2.1.0-beta
>            Reporter: Vinay
>            Assignee: Vinay
>             Fix For: 2.1.2-beta
>
>         Attachments: HDFS-5300.patch, HDFS-5300.patch, HDFS-5300.patch
>
>
> FSNameSystem#deleteSnapshot() should not check owner in case of permissions disabled
> {code:java}      checkOperation(OperationCategory.WRITE);
>       if (isInSafeMode()) {
>         throw new SafeModeException(
>             "Cannot delete snapshot for " + snapshotRoot, safeMode);
>       }
>       FSPermissionChecker pc = getPermissionChecker();
>       checkOwner(pc, snapshotRoot);
>       BlocksMapUpdateInfo collectedBlocks = new BlocksMapUpdateInfo();
>       List<INode> removedINodes = new ChunkedArrayList<INode>();
>       dir.writeLock();{code}
> should check owner only in case of permissions enabled as its done for all other operations.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message