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

hemanthboyina updated HDFS-15332:
---------------------------------
    Description: 
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

> 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
>         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: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to