Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-2802 Support for RW/RO snapshots in HDFS
  3. HDFS-4557

Fix FSDirectory#delete when INode#cleanSubtree returns 0

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Snapshot (HDFS-2802)
    • namenode
    • None
    • Reviewed

    Description

      Currently INode#cleanSubtree is used to delete files/directories and collect corresponding blocks for future deletion. Its return value can be 0 even if file/dir has been deleted because we save snapshot copies. This breaks the original logic in FSDirectory#delete since FSDirectory#delete expects a positive value from a successful deletion.

      Attachments

        1. HDFS-4557.000.patch
          2 kB
          Jing Zhao
        2. HDFS-4557.001.patch
          4 kB
          Jing Zhao
        3. HDFS-4557.002.patch
          5 kB
          Jing Zhao
        4. HDFS-4557.003.patch
          7 kB
          Jing Zhao
        5. HDFS-4557.003.patch
          11 kB
          Jing Zhao

        Activity

          People

            jingzhao Jing Zhao
            jingzhao Jing Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: