[
https://issues.apache.org/jira/browse/HADOOP-3187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601214#action_12601214
]
Hairong Kuang commented on HADOOP-3187:
---------------------------------------
Konstantin, thanks a lot for your comments. I agree with most of them except for
Comment 2: AccessControlException concerns about user identity. But
QuotaExceededException has nothing to do with users and groups. So I would
prefer to make it be an IOException.
Comments 8, 9: Currently int would be enough for counting namespace size. But
if we concern about the backward compatibility and future support, I will make
both quota and count to be long.
Comments 11: I prefer to make the checking and updating count to be an atomic
operation in stead of breaking it into two operations. Even with your approach,
there is a risk of inconsistency if there is a runtime exception in between the
tree update and the count update.
> Quotas for name space management
> --------------------------------
>
> Key: HADOOP-3187
> URL: https://issues.apache.org/jira/browse/HADOOP-3187
> Project: Hadoop Core
> Issue Type: New Feature
> Reporter: Robert Chansler
> Assignee: Hairong Kuang
> Attachments: quota.patch, QuotasDesign.pdf, QuotasDesign1.pdf
>
>
> Create a quota mechanism for name space management.
> Quota set at a directory by super user restricts that number of names in and
> below that directory.
> Quota tested by create() and rename().
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.