hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ming Ma (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-9360) Storage type usage isn't updated properly after file deletion
Date Mon, 02 Nov 2015 17:00:28 GMT

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

Ming Ma updated HDFS-9360:
--------------------------
    Attachment: HDFS-9360.patch

The issue is in {{computeQuotaUsage}}, where {{bsps.getPolicy}} returns the default storage
policy instead of null pointer. Here is the patch with the unit test that verifies the fix.
[~xyao] or others, can you please take a look?

> 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
>         Attachments: HDFS-9360.patch
>
>
> For a directory that doesn't have any storage policy defined, its quota usage is deducted
when a file is deleted. This means incorrect value for storage quota usage. Later when applications
set the storage type, it can exceed its storage quota.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message