[
https://issues.apache.org/jira/browse/HDFS-3478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13290549#comment-13290549
]
Hadoop QA commented on HDFS-3478:
---------------------------------
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12531155/hdfs-3478.txt
against trunk revision .
+1 @author. The patch does not contain any @author tags.
+1 tests included. The patch appears to include 1 new or modified test
files.
+1 javac. The applied patch does not increase the total number of javac
compiler warnings.
+1 javadoc. The javadoc tool did not generate any warning messages.
+1 eclipse:eclipse. The patch built with eclipse:eclipse.
+1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9)
warnings.
+1 release audit. The applied patch does not increase the total number of
release audit warnings.
+1 core tests. The patch passed unit tests in
hadoop-hdfs-project/hadoop-hdfs.
+1 contrib tests. The patch passed contrib unit tests.
Test results:
https://builds.apache.org/job/PreCommit-HDFS-Build/2610//testReport/
Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/2610//console
This message is automatically generated.
> -setQuota, -setSpaceQuota Issues with Long.Max_Value
> ----------------------------------------------------
>
> Key: HDFS-3478
> URL: https://issues.apache.org/jira/browse/HDFS-3478
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: name-node
> Affects Versions: 2.0.0-alpha
> Reporter: Sujay Rau
> Assignee: Sujay Rau
> Priority: Minor
> Labels: newbie
> Attachments: hdfs-3478.txt
>
>
> [root@c1204 hadoop]# sudo -u hdfs hadoop fs -mkdir testQuotaFolder
> [root@c1204 hadoop]# sudo -u hdfs hadoop fs -count -q testQuotaFolder
> none inf none inf 1 0 0 testQuotaFolder
> [root@c1204 hadoop]# sudo -u hdfs hdfs dfsadmin -setQuota 1000 testQuotaFolder
> [root@c1204 hadoop]# sudo -u hdfs hdfs dfsadmin -setSpaceQuota 1000
> testQuotaFolder
> [root@c1204 hadoop]# sudo -u hdfs hadoop fs -count -q testQuotaFolder
> 1000 999 1000 1000 1 0 0 testQuotaFolder
> [root@c1204 hadoop]# sudo -u hdfs hdfs dfsadmin -setSpaceQuota
> 9223372036854775807 testQuotaFolder
> [root@c1204 hadoop]# sudo -u hdfs hdfs dfsadmin -setQuota 9223372036854775807
> testQuotaFolder
> [root@c1204 hadoop]# sudo -u hdfs hadoop fs -count -q testQuotaFolder
> 1000 999 1000 1000 1 0 0 testQuotaFolder
> [root@c1204 hadoop]# sudo -u hdfs hdfs dfsadmin -setQuota 9223372036854775806
> testQuotaFolder
> [root@c1204 hadoop]# sudo -u hdfs hdfs dfsadmin -setSpaceQuota
> 9223372036854775806 testQuotaFolder
> [root@c1204 hadoop]# sudo -u hdfs hadoop fs -count -q testQuotaFolder
> 9223372036854775806 9223372036854775805 9223372036854775806
> 9223372036854775806 1 0 0 testQuotaFolder
> The documentation at
> http://hadoop.apache.org/common/docs/r0.20.0/hdfs_quota_admin_guide.html says
> that the max quota size is Long.Max_Value which is = 9223372036854775807, but
> as you can see above, setting the quota to this value returns no error but
> doesn't actually change the quota value. Long.Max_Value - 1 works though.. so
> the documentation should be changed to reflect this behavior. Long.Max_Value
> + 1 returns an actual error (though it isn't the same as the negative number
> error):
> [root@c1204 hadoop]# sudo -u hdfs hdfs dfsadmin -setSpaceQuota
> 9223372036854775808 testQuotaFolder
> setSpaceQuota: For input string: "9223372036854775808"
> Usage: java DFSAdmin [-setSpaceQuota <quota> <dirname>...<dirname>]
> [root@c1204 hadoop]# sudo -u hdfs hdfs dfsadmin -setSpaceQuota -1
> testQuotaFolder
> setSpaceQuota: Illegal option -1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira