You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org> on 2008/09/24 02:27:44 UTC

[jira] Issue Comment Edited: (HADOOP-4254) Cannot setSpaceQuota to 1TB

    [ https://issues.apache.org/jira/browse/HADOOP-4254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633968#action_12633968 ] 

szetszwo edited comment on HADOOP-4254 at 9/23/08 5:27 PM:
-------------------------------------------------------------------------

The problem is due to the constructor of SetQuotaCommand.  There is a int overflow for setting multiplier = 1024 * 1024 * 1024 * 1024, where the type of multiplier is long.  A simple fix is to change 1024 to 1024L.  I suggest to use StringUtils.TraditionalBinaryPrefix for parsing the string.

      was (Author: szetszwo):
    The problem is due to the constructor of SetQuotaCommand.  There is a int overflow for setting multiplier = 1024 * 1024 * 1024 * 1024, where the type of multiplier is long.  A simple fix is to change 1024 to 1024L.  I suggest we use StringUtils.TraditionalBinaryPrefix to parsing the value.
  
> Cannot setSpaceQuota to 1TB
> ---------------------------
>
>                 Key: HADOOP-4254
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4254
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.19.0
>            Reporter: Tsz Wo (Nicholas), SZE
>            Priority: Blocker
>             Fix For: 0.19.0
>
>
> When setting space quota to 1TB, it shows "/ by zero".
> {noformat}
> bash-3.2$ ./bin/hadoop dfsadmin -setSpaceQuota 1TB /user
> setSpaceQuota: / by zero
> {noformat}

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