Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1A79FCEED for ; Wed, 30 May 2012 18:22:26 +0000 (UTC) Received: (qmail 6439 invoked by uid 500); 30 May 2012 18:22:24 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 6209 invoked by uid 500); 30 May 2012 18:22:24 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 5900 invoked by uid 99); 30 May 2012 18:22:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2012 18:22:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id B136314285B for ; Wed, 30 May 2012 18:22:23 +0000 (UTC) Date: Wed, 30 May 2012 18:22:23 +0000 (UTC) From: "Sujay Rau (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1735701908.17383.1338402143728.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (HDFS-3478) -setQuota, -setSpaceQuota Issues with Long.Max_Value MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Sujay Rau created HDFS-3478: ------------------------------- Summary: -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 Reporter: Sujay Rau Priority: Minor [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 ...] [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