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

VotersStop watchingWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Snapshot (HDFS-2802)
    • namenode
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment