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

Add an option to prevent sub-directories of protected directories from deletion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.1
    • 3.3.1, 3.4.0
    • namenode
    • None
    • Reviewed

    Description

      HDFS-8983 add  fs.protected.directories to support protected directories on NameNode.  But as I test, when set a parent directory(eg /testA)  to protected directory, the child directory (eg /testA/testB) still can be deleted or renamed. When we protect a directory  mainly for protecting the data under this directory , So I think the child directory should not be delete or renamed if the parent directory is a protected directory.

      Attachments

        1. image-2020-03-28-09-23-31-335.png
          46 kB
          liuyanyu
        2. HDFS-15243.006.patch
          9 kB
          liuyanyu
        3. HDFS-15243.005.patch
          8 kB
          liuyanyu
        4. HDFS-15243.004.patch
          14 kB
          liuyanyu
        5. HDFS-15243.003.patch
          14 kB
          liuyanyu
        6. HDFS-15243.002.patch
          12 kB
          liuyanyu
        7. HDFS-15243.001.patch
          4 kB
          liuyanyu

        Activity

          People

            rain_lyy liuyanyu
            rain_lyy liuyanyu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: