[
https://issues.apache.org/jira/browse/HDFS-9360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14985720#comment-14985720
]
Xiaoyu Yao commented on HDFS-9360:
----------------------------------
Thanks [~mingma] for reporting the issue, investigating and providing the patch
that restores the similar logic in INodeFile#computeQuotaUsage() before
HDFS-7728. The change looks good to me. One NIT: Can you separate the new unit
tests into a single case in TestQuotaByStorageType where we can have all the
storage type quota related tests in one place? +1 pending Jenkins.
> Storage type usage isn't updated properly after file deletion
> -------------------------------------------------------------
>
> Key: HDFS-9360
> URL: https://issues.apache.org/jira/browse/HDFS-9360
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Ming Ma
> Assignee: Ming Ma
> Attachments: HDFS-9360.patch
>
>
> For a directory that doesn't have any storage policy defined, its storage
> quota usage is deducted when a file is deleted (addBlock skips storage quota
> usage update in such case). This means negative value for storage quota
> usage. Later after applications set the storage policy and storage type
> quota, it allows the applications to use more than its storage type quota.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)