hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-1189) Quota counts missed between clear quota and set quota
Date Fri, 01 Apr 2011 22:45:05 GMT

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

Tsz Wo (Nicholas), SZE updated HDFS-1189:
-----------------------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]
          Status: Resolved  (was: Patch Available)

I have also committed this to 0.20-security.

> Quota counts missed between clear quota and set quota
> -----------------------------------------------------
>
>                 Key: HDFS-1189
>                 URL: https://issues.apache.org/jira/browse/HDFS-1189
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>            Reporter: Kang Xiao
>            Assignee: John George
>              Labels: hdfs, quota
>             Fix For: 0.20.204.0, 0.21.1, Federation Branch, 0.22.0, 0.23.0
>
>         Attachments: HDFS-1189-for_20.204.patch, HDFS-1189-for_20.204.patch, HDFS-1189.patch,
HDFS-1189.patch, HDFS-1189.patch, hdfs-1189-1.patch
>
>
> HDFS Quota counts will be missed between a clear quota operation and a set quota.
> When setting quota for a dir, the INodeDirectory will be replaced by INodeDirectoryWithQuota
and dir.isQuotaSet() becomes true. When INodeDirectoryWithQuota  is newly created, quota counting
will be performed. However, when clearing quota, the quota conf is set to -1 and dir.isQuotaSet()
becomes false while INodeDirectoryWithQuota will NOT be replaced back to INodeDirectory.
> FSDirectory.updateCount just update the quota count for inodes that isQuotaSet() is true.
So after clear quota for a dir, its quota counts will not be updated and it's reasonable.
But when re seting quota for this dir, quota counting will not be performed and some counts
will be missed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message