Return-Path: X-Original-To: apmail-hadoop-hdfs-commits-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DFD16D8CA for ; Sat, 20 Oct 2012 00:08:59 +0000 (UTC) Received: (qmail 65949 invoked by uid 500); 20 Oct 2012 00:08:59 -0000 Delivered-To: apmail-hadoop-hdfs-commits-archive@hadoop.apache.org Received: (qmail 65913 invoked by uid 500); 20 Oct 2012 00:08:59 -0000 Mailing-List: contact hdfs-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-commits@hadoop.apache.org Received: (qmail 65902 invoked by uid 99); 20 Oct 2012 00:08:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Oct 2012 00:08:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Oct 2012 00:08:58 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 5A0EB23888E3; Sat, 20 Oct 2012 00:08:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1400346 - in /hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs: ./ CHANGES.txt src/main/java/ src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeDirectoryWithQuota.java Date: Sat, 20 Oct 2012 00:08:15 -0000 To: hdfs-commits@hadoop.apache.org From: szetszwo@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121020000815.5A0EB23888E3@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: szetszwo Date: Sat Oct 20 00:08:14 2012 New Revision: 1400346 URL: http://svn.apache.org/viewvc?rev=1400346&view=rev Log: svn merge -c 1400345 from trunk for HDFS-4088. Remove "throws QuotaExceededException" from an INodeDirectoryWithQuota constructor. Modified: hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/ (props changed) hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/src/main/java/ (props changed) hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeDirectoryWithQuota.java Propchange: hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/ ------------------------------------------------------------------------------ Merged /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs:r1400345 Modified: hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt?rev=1400346&r1=1400345&r2=1400346&view=diff ============================================================================== --- hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt (original) +++ hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt Sat Oct 20 00:08:14 2012 @@ -56,7 +56,7 @@ Release 2.0.3-alpha - Unreleased HDFS-4037. Rename the getReplication() method in BlockCollection to getBlockReplication(). (szetszwo) - HDFS-4036. Remove "throw UnresolvedLinkException" from + HDFS-4036. Remove "throws UnresolvedLinkException" from FSDirectory.unprotectedAddFile(..). (Jing Zhao via szetszwo) HDFS-2946. HA: Put a cap on the number of completed edits files retained @@ -71,6 +71,9 @@ Release 2.0.3-alpha - Unreleased HDFS-4074. Remove the unused default constructor from INode. (Brandon Li via szetszwo) + HDFS-4088. Remove "throws QuotaExceededException" from an + INodeDirectoryWithQuota constructor. (szetszwo) + OPTIMIZATIONS BUG FIXES Propchange: hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/src/main/java/ ------------------------------------------------------------------------------ Merged /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java:r1400345 Modified: hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeDirectoryWithQuota.java URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeDirectoryWithQuota.java?rev=1400346&r1=1400345&r2=1400346&view=diff ============================================================================== --- hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeDirectoryWithQuota.java (original) +++ hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeDirectoryWithQuota.java Sat Oct 20 00:08:14 2012 @@ -37,21 +37,19 @@ class INodeDirectoryWithQuota extends IN * @param dsQuota Diskspace quota to be assigned to this indoe * @param other The other inode from which all other properties are copied */ - INodeDirectoryWithQuota(long nsQuota, long dsQuota, INodeDirectory other) - throws QuotaExceededException { + INodeDirectoryWithQuota(long nsQuota, long dsQuota, + INodeDirectory other) { super(other); INode.DirCounts counts = new INode.DirCounts(); other.spaceConsumedInTree(counts); - this.nsCount= counts.getNsCount(); + this.nsCount = counts.getNsCount(); this.diskspace = counts.getDsCount(); setQuota(nsQuota, dsQuota); } /** constructor with no quota verification */ - INodeDirectoryWithQuota( - PermissionStatus permissions, long modificationTime, - long nsQuota, long dsQuota) - { + INodeDirectoryWithQuota(PermissionStatus permissions, long modificationTime, + long nsQuota, long dsQuota) { super(permissions, modificationTime); this.nsQuota = nsQuota; this.dsQuota = dsQuota; @@ -59,9 +57,8 @@ class INodeDirectoryWithQuota extends IN } /** constructor with no quota verification */ - INodeDirectoryWithQuota(String name, PermissionStatus permissions, - long nsQuota, long dsQuota) - { + INodeDirectoryWithQuota(String name, PermissionStatus permissions, + long nsQuota, long dsQuota) { super(name, permissions); this.nsQuota = nsQuota; this.dsQuota = dsQuota;