hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jing Zhao (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-4499) Fix file/directory/snapshot deletion for file diff
Date Thu, 21 Feb 2013 03:18:13 GMT

     [ https://issues.apache.org/jira/browse/HDFS-4499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Jing Zhao updated HDFS-4499:

    Attachment: HDFS-4499.003.patch

Thanks for the comments Nicholas! Upload the new patch to address your comments.

bq.INodeDirectoryWithSnapshot.ChildrenDiff.destroyCreatedList() is not needed since the nodes
in created are the current children, which will be destroyed.

destroyCreatedList() is still necessary because when we delete a current subtree we only destroy
the children that were created after the latest snapshot was taken.

bq.INodeFileWithSnapshot.cleanSubtree: collectBlocksAndClear should be called at the end

collectedBlockAndClear has been called in FileDiff#combinePosteriorAndCollectBlocks.
> Fix file/directory/snapshot deletion for file diff
> --------------------------------------------------
>                 Key: HDFS-4499
>                 URL: https://issues.apache.org/jira/browse/HDFS-4499
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: datanode, namenode
>            Reporter: Jing Zhao
>            Assignee: Jing Zhao
>         Attachments: HDFS-4499.000.patch, HDFS-4499.001.patch, HDFS-4499.002.patch, HDFS-4499.003.patch
> After recording file diffs, the original file/directory/snapshot deletion process needs
to updated. This jira revisits and fixes the whole deletion process. New unit tests will also
be added to cover different cases.

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

View raw message