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

Ravi Phulari commented on HDFS-846:
-----------------------------------

Also we need to correct ambiguous  error message for setSpaceQuota value.

*setSpaceQuota: Invalid values for quota : 9223372036854775807 and 0*

This should be something like - *setSpaceQuota: Invalid value <user-input> for 
setSpaceQuota : Allowed maximum spaceQuota = 9223372036854775807 and  minimum 
spaceQuota = 0*

{noformat}
[u...@ghost-host hadoop]$ hadoop dfsadmin -setSpaceQuota 0 /
setSpaceQuota: Invalid values for quota : 9223372036854775807 and 0
{noformat}



> SetSpaceQuota of value 9223372036854775807 does not apply quota.
> ----------------------------------------------------------------
>
>                 Key: HDFS-846
>                 URL: https://issues.apache.org/jira/browse/HDFS-846
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 0.20.1
>            Reporter: Ravi Phulari
>            Priority: Minor
>             Fix For: 0.20.2, 0.21.0, 0.22.0
>
>
> *hadoop dfsadmin -setSpaceQuota* can set maximum quota of value  
> 9223372036854775807 and minimum  0.  There is no error message or quota is 
> not applied when user tries to setSpaceQuota of size 9223372036854775807. 
> {noformat} 
> [u...@ghost-host hadoop]$ hadoop dfsadmin -setSpaceQuota 9223372036854775807 /
> [u...@ghost-host hadoop]$ hadoop fs -count -q /  2147483647      2147483599   
>          none             inf           24           24            2019254 
> hdfs://ghost-nn.scary.land.com/
> {noformat} 
> We should warn user by showing error message that 9223372036854775807 is 
> invalid value and quota will not be applied. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to