Return-Path: X-Original-To: apmail-hbase-commits-archive@www.apache.org Delivered-To: apmail-hbase-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BC3546676 for ; Wed, 22 Jun 2011 05:27:35 +0000 (UTC) Received: (qmail 73978 invoked by uid 500); 22 Jun 2011 05:27:35 -0000 Delivered-To: apmail-hbase-commits-archive@hbase.apache.org Received: (qmail 73844 invoked by uid 500); 22 Jun 2011 05:27:30 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 73837 invoked by uid 99); 22 Jun 2011 05:27:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 05:27:30 +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; Wed, 22 Jun 2011 05:27:28 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 785E6238890D; Wed, 22 Jun 2011 05:27:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1138305 - /hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java Date: Wed, 22 Jun 2011 05:27:08 -0000 To: commits@hbase.apache.org From: stack@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110622052708.785E6238890D@eris.apache.org> Author: stack Date: Wed Jun 22 05:27:08 2011 New Revision: 1138305 URL: http://svn.apache.org/viewvc?rev=1138305&view=rev Log: HBASE-3986 troubleshooting.xml - adding client long-pause and NotServingRegionException entries -- back out mistaken HRS commit Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java?rev=1138305&r1=1138304&r2=1138305&view=diff ============================================================================== --- hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java (original) +++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java Wed Jun 22 05:27:08 2011 @@ -1050,22 +1050,12 @@ public class HRegionServer implements HR */ private static class CompactionChecker extends Chore { private final HRegionServer instance; - private final int majorCompactPriority; - private final static int DEFAULT_PRIORITY = -1; CompactionChecker(final HRegionServer h, final int sleepTime, final Stoppable stopper) { super("CompactionChecker", sleepTime, h); this.instance = h; LOG.info("Runs every " + StringUtils.formatTime(sleepTime)); - - /* MajorCompactPriority is configurable. - * If not set, it will get the value of hbase.hstore.blockingStoreFiles, - * and the compaction will use default priority. - */ - this.majorCompactPriority = this.instance.conf. - getInt("hbase.regionserver.compactionChecker.majorCompactPriority", - DEFAULT_PRIORITY); } @Override @@ -1075,19 +1065,10 @@ public class HRegionServer implements HR continue; for (Store s : r.getStores().values()) { try { - if (s.needsCompaction()) { + if (s.isMajorCompaction() || s.needsCompaction()) { // Queue a compaction. Will recognize if major is needed. this.instance.compactSplitThread.requestCompaction(r, s, - getName() + " requests compaction"); - } else if (s.isMajorCompaction()) { - if (majorCompactPriority == DEFAULT_PRIORITY ) { - this.instance.compactSplitThread.requestCompaction(r, s, - getName() + " requests major compaction; use default priority"); - } else { - this.instance.compactSplitThread.requestCompaction(r, s, - getName() + " requests major compaction; use configured priority", - this.majorCompactPriority); - } + getName() + " requests major compaction"); } } catch (IOException e) { LOG.warn("Failed major compaction check on " + r, e);