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

For snapshot deletion, when merging the diff from to-delete snapshot to the prior snapshot, make sure files/directories created after the prior snapshot get deleted

    XMLWordPrintableJSON

    Details

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

      Description

      When the following steps happen:
      1. Take snapshot s1 on dir.
      2. Create new dir and files under subDir, which is descendant of dir.
      3. Take snapshot s2 on dir.
      4. Delete subDir.
      5. Delete snapshot s2.
      When we merge the diff from s2 to s1 (since we deleted s2), we need to make
      sure all the files/dirs created after s1 should be destroyed. Otherwise
      if these files/dirs are saved to the fsimage, we will have FileNotFound Exception while loading fsimage.

        Attachments

        1. HDFS-4648.001.patch
          11 kB
          Jing Zhao

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: