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

Hudson commented on HDFS-15332:
-------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #18223 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/18223/])
HDFS-15332. Quota Space consumed was wrong in truncate with Snapshots. 
(inigoiri: rev 130f89e068ca346a44fa6619ae0726c1e5cc5d06)
* (edit) 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/snapshot/FileWithSnapshotFeature.java
* (edit) 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFileTruncate.java


> Quota Space consumed was wrong in truncate with Snapshots
> ---------------------------------------------------------
>
>                 Key: HDFS-15332
>                 URL: https://issues.apache.org/jira/browse/HDFS-15332
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: hemanthboyina
>            Assignee: hemanthboyina
>            Priority: Major
>             Fix For: 3.4.0
>
>         Attachments: HDFS-15332.001.patch
>
>
> On calculating space quota usage
> {code:java}
>    if (file.getBlocks() != null) {
>         allBlocks.addAll(Arrays.asList(file.getBlocks()));
>    }
>    if (removed.getBlocks() != null) {
>         allBlocks.addAll(Arrays.asList(removed.getBlocks()));
>    }  
>    for (BlockInfo b: allBlocks) { {code}
> we missed out the blocks of file snapshot feature's Diffs



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to