[
https://issues.apache.org/jira/browse/HDFS-15332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wei-Chiu Chuang updated HDFS-15332:
-----------------------------------
Fix Version/s: 3.3.1
> 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: Hemanth Boyina
> Assignee: Hemanth Boyina
> Priority: Major
> Fix For: 3.3.1, 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]