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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0-beta, 3.0.0-alpha1
    • 2.2.0
    • namenode
    • None
    • 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
          3 kB
          Vinayakumar B
        2. HDFS-5300.patch
          4 kB
          Vinayakumar B
        3. HDFS-5300.patch
          4 kB
          Jing Zhao

        Activity

          People

            vinayakumarb Vinayakumar B
            vinayakumarb Vinayakumar B
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: