You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Vinay (JIRA)" <ji...@apache.org> on 2013/10/04 08:18:43 UTC
[jira] [Created] (HDFS-5300) FSNameSystem#deleteSnapshot() should
not check owner in case of permissions disabled
Vinay created HDFS-5300:
---------------------------
Summary: 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
Reporter: Vinay
Assignee: Vinay
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)