hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Wittenauer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8159) [HDFS-Quota] Verification is not done while setting dir namequota and size
Date Thu, 16 Apr 2015 13:14:00 GMT

    [ https://issues.apache.org/jira/browse/HDFS-8159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14498036#comment-14498036
] 

Allen Wittenauer commented on HDFS-8159:
----------------------------------------

Is the issue that you can set it to a value lower than what is currently present?  If so,
that's working as intended  Otherwise admins would never be able to lower quotas on already
existing directories with quotas.  This also acts as a forcing function to remove data.

> [HDFS-Quota] Verification is not done while setting dir namequota and size
> --------------------------------------------------------------------------
>
>                 Key: HDFS-8159
>                 URL: https://issues.apache.org/jira/browse/HDFS-8159
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: HDFS
>    Affects Versions: 2.6.0
>         Environment: Suse 11 SP3
>            Reporter: Jagadesh Kiran N
>            Priority: Minor
>
> Name Quota and space quota is not verifying when setting a new value to a directory which
already has subdirectories or contents.
> Below are the steps to re-produce the cases:
> *+Case-1+*
> Step-1) Create a New folder 
> hdfs dfs -mkdir /test
> Step-2) Create sub folders
> hdfs dfs -mkdir /test/one
> hdfs dfs -mkdir /test/two
> hdfs dfs -mkdir /test/three
> Step-3) Set Name Quota as two 
> hdfs dfsadmin  -setQuota 2 /test
> Step-3) Quota will be set with out the validating the dirs 
> +Output:+ Eventhough name quota value is lower than the existing number of dirs, its
not validating and allowing to set the new value.
> +Suggestion:+ Validate the name quota against the number of contents before setting the
new value.
> *+Case-2+*
> Step-1) Add any new folder or file , it will give error message
> mkdir: The NameSpace quota (directories and files) of directory /test is exceeded: quota=2
file count=5
> Step-2) Clear the Quota 
> hdfs dfsadmin -clrQuota /test
> Step-3) Now Set the Size less than the folder size 
> hdfs dfsadmin -setSpaceQuota 10 /test
> +Output:+ Eventhough space quota value is less than the size of the existing dir contents,
its not validating and allowing to set the new value.
> +Suggestion:+ Validate the quota against the used space before setting the new value.



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

Mime
View raw message