Details
Description
FSNameSystem#deleteSnapshot() should not check owner in case of permissions disabled
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();
should check owner only in case of permissions enabled as its done for all other operations.