Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5300

FSNameSystem#deleteSnapshot() should not check owner in case of permissions disabled

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0-beta, 3.0.0-alpha1
    • Fix Version/s: 2.2.0
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      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.

        Attachments

        1. HDFS-5300.patch
          4 kB
          Jing Zhao
        2. HDFS-5300.patch
          4 kB
          Vinayakumar B
        3. HDFS-5300.patch
          3 kB
          Vinayakumar B

          Activity

            People

            • Assignee:
              vinayakumarb Vinayakumar B
              Reporter:
              vinayakumarb Vinayakumar B
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: