hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Boudnik (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HDFS-687) FS setSpaceQuota should warn when user attempts to set quota of very large amount.
Date Fri, 09 Oct 2009 05:27:31 GMT

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

Konstantin Boudnik commented on HDFS-687:

Two things:
- according to this piece of code of {{DFSAdmin}} class
    SetSpaceQuotaCommand(String[] args, int pos, FileSystem fs) {
      CommandFormat c = new CommandFormat(NAME, 2, Integer.MAX_VALUE);
      List<String> parameters = c.parse(args, pos);
the max value is {{Integer.MAX_VALUE}}
- {{parse}} is throwing {{IlligalArgumentException}} if max value is topped. I wonder why
this isn't happening

> FS setSpaceQuota should warn  when user attempts to set quota of very large amount.
> -----------------------------------------------------------------------------------
>                 Key: HDFS-687
>                 URL: https://issues.apache.org/jira/browse/HDFS-687
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Ravi Phulari
> FS -setSpaceQuota has upper limit of  Long.Max_Value  ( http://hadoop.apache.org/common/docs/current/hdfs_quota_admin_guide.html
> There is no warning message when user attempts to set a quota of very large amount .
> {noformat}
> [hadoop@0035 hadoop]$ bin/hadoop dfsadmin  -setQuota 9223372036854775 /user/rphulari
> [hadoop@0035 hadoop]$ bin/hadoop dfsadmin  -setQuota 9223372036854775456 /user/rphulari
> [hadoop@0035 hadoop]$ bin/hadoop dfsadmin  -setQuota 9223372036854775456456 /user/rphulari
> setQuota: For input string: "9223372036854775456456"
> Usage: java DFSAdmin [-setQuota <quota> <dirname>...<dirname>]
> {noformat}
> HDFS should warn user of maximum range of quota which can be applied.

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

View raw message