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

Hudson commented on HDFS-4636:
------------------------------

Integrated in Hadoop-Hdfs-Snapshots-Branch-build #143 (See 
[https://builds.apache.org/job/Hadoop-Hdfs-Snapshots-Branch-build/143/])
    HDFS-4636. Update quota usage when deleting files/dirs that were created 
after taking the latest snapshot. Contributed by Jing Zhao (Revision 1462192)

     Result = FAILURE
szetszwo : 
http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1462192
Files : 
* 
/hadoop/common/branches/HDFS-2802/hadoop-hdfs-project/hadoop-hdfs/CHANGES.HDFS-2802.txt
* 
/hadoop/common/branches/HDFS-2802/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java
* 
/hadoop/common/branches/HDFS-2802/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/snapshot/TestSnapshotBlocksMap.java
* 
/hadoop/common/branches/HDFS-2802/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/snapshot/TestSnapshotDeletion.java

                
> Update quota usage when deleting files/dirs that were created after taking 
> the latest snapshot
> ----------------------------------------------------------------------------------------------
>
>                 Key: HDFS-4636
>                 URL: https://issues.apache.org/jira/browse/HDFS-4636
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: namenode
>            Reporter: Jing Zhao
>            Assignee: Jing Zhao
>             Fix For: Snapshot (HDFS-2802)
>
>         Attachments: HDFS-4636.001.patch
>
>
> This jira aims to fix two bugs in deleting files with snapshot:
> 1. We should update the quota usage when the file/dir to be deleted is not 
> included in the latest snapshot (i.e., the to-be-deleted file/dir is recorded 
> in the created list of the latest snapshot). In particular, in 
> FSDirectory#removeLastINode, instead of checking if the latest snapshot is 
> null to decide whether we should update the quota usage, we should use 
> INode#isInLatestSnapshot(Snapshot) as the check condition.
> 2. Similarly, in FSDirectory#unprotectedDelete(...), we should update quota 
> usage after calling INode#cleanSubtree, considering during cleanSubtree() we 
> may delete files that were created after taking the latest snapshot.

--
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