Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
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.