[
https://issues.apache.org/jira/browse/HDFS-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jing Zhao updated HDFS-4648:
----------------------------
Attachment: HDFS-4648.001.patch
A patch including the fix and two new unit tests.
> 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
> Components: datanode, namenode
> Reporter: Jing Zhao
> Assignee: Jing Zhao
> Attachments: HDFS-4648.001.patch
>
>
> 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