Jing Zhao created HDFS-4648:
-------------------------------

             Summary: 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
                 Key: HDFS-4648
                 URL: https://issues.apache.org/jira/browse/HDFS-4648
             Project: Hadoop HDFS
          Issue Type: Sub-task
            Reporter: Jing Zhao
            Assignee: Jing Zhao


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.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to