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

Fix INodeDirectoryWithSnapshot#cleanDeletedINode

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Snapshot (HDFS-2802)
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      HDFS-4791 updated and fixed the deletion logic for reference node, but did not update INodeDirectoryWithSnapshot#cleanDeletedINode. When deleting a snapshot s, after we merge s1 to its prior snapshot s0, cleanDeletedINode is called to destroy the files/directories that were created after taking snapshot s0. However, if a node is in the deleted list of s1 because of renaming, we should not destroy the node and its subtree, but just continue the normal snapshot deletion process.

        Attachments

        1. HDFS-4800.001.patch
          6 kB
          Jing Zhao

          Activity

            People

            • Assignee:
              jingzhao Jing Zhao
              Reporter:
              jingzhao Jing Zhao
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: