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

The feature of protect directories should be used in RenameOp

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.4, 3.3.0, 3.2.1, 3.1.3
    • Fix Version/s: 3.3.0
    • Component/s: hdfs
    • Labels:
      None

      Description

      Now we could set fs.protected.directories to prevent users from deleting important directories. But users can delete directories around the limitation.
      1. Rename the directories and delete them.
      2. move the directories to trash and namenode will delete them.
      So I think we should use the feature of protected directories in RenameOp

        Attachments

        1. HDFS-14802.004.patch
          16 kB
          Fei Hui
        2. HDFS-14802.003.patch
          12 kB
          Fei Hui
        3. HDFS-14802.002.patch
          12 kB
          Fei Hui
        4. HDFS-14802.001.patch
          11 kB
          Fei Hui

          Issue Links

            Activity

              People

              • Assignee:
                ferhui Fei Hui
                Reporter:
                ferhui Fei Hui
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: