hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5476) Snapshot: clean the blocks/files/directories under a renamed file/directory while deletion
Date Wed, 11 Dec 2013 10:58:19 GMT

    [ https://issues.apache.org/jira/browse/HDFS-5476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13845295#comment-13845295
] 

Hudson commented on HDFS-5476:
------------------------------

FAILURE: Integrated in Hadoop-Yarn-trunk #418 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/418/])
Move HDFS-5257,HDFS-5427,HDFS-5443,HDFS-5476,HDFS-5425,HDFS-5474,HDFS-5504,HDFS-5428 into
branch-2.3 section. (jing9: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1550011)
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt


> Snapshot: clean the blocks/files/directories under a renamed file/directory while deletion
> ------------------------------------------------------------------------------------------
>
>                 Key: HDFS-5476
>                 URL: https://issues.apache.org/jira/browse/HDFS-5476
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.2.0
>            Reporter: Jing Zhao
>            Assignee: Jing Zhao
>             Fix For: 2.3.0
>
>         Attachments: HDFS-5476.001.patch
>
>
> Currently DstReference#destroyAndCollectBlocks may fail to clean the subtree under the
DstReference node for file/directory/snapshot deletion.
> Use case 1:
> # rename under-construction file with 0-sized blocks after snapshot.
> # delete the renamed directory.
> We need to make sure we delete the 0-sized block.
> Use case 2:
> # create snapshot s0 for /
> # create a new file under /foo/bar/
> # rename foo --> foo2
> # create snapshot s1
> # delete bar and foo2
> # delete snapshot s1
> We need to make sure we delete the file under /foo/bar since it is not included in snapshot
s0.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message