Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C225DB71 for ; Fri, 30 Nov 2012 02:15:59 +0000 (UTC) Received: (qmail 59659 invoked by uid 500); 30 Nov 2012 02:15:58 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 59609 invoked by uid 500); 30 Nov 2012 02:15:58 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 59600 invoked by uid 99); 30 Nov 2012 02:15:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2012 02:15:58 +0000 Date: Fri, 30 Nov 2012 02:15:58 +0000 (UTC) From: "Enis Soztutar (JIRA)" To: issues@hbase.apache.org Message-ID: <1037997758.43651.1354241758889.JavaMail.jiratomcat@arcas> In-Reply-To: <1171077602.24000.1353956218377.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (HBASE-7220) Creating a table with 3000 regions on 2 nodes fails after 1 hour MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-7220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507042#comment-13507042 ] Enis Soztutar commented on HBASE-7220: -------------------------------------- I've created HBASE-7243 for adding a test for this. > Creating a table with 3000 regions on 2 nodes fails after 1 hour > ---------------------------------------------------------------- > > Key: HBASE-7220 > URL: https://issues.apache.org/jira/browse/HBASE-7220 > Project: HBase > Issue Type: Bug > Components: metrics, Performance, regionserver > Affects Versions: 0.96.0 > Reporter: nkeywal > Assignee: Elliott Clark > Attachments: HBASE-7220-0.patch, HBASE-7220-1.patch, HBASE-7220-2.patch > > > I'm trying to create a table with 3000 regions on two regions servers, from the shell. > It's ok on trunk a standalone config. > It's ok on 0.94 > It's not ok on trunk: it fails after around 1 hour. > If I remove all the code related to metrics in HRegion, the 3000 regions are created in 3 minutes (twice faster than the 0.94). > On trunk, the region server spends its time in "waitForWork", while the master is in the tcp connection related code. It's a 1Gb network. > I haven't looked at the metric code itself. > Patch used to remove the metrics from HRegion: > {noformat} > index c70e9ab..6677e65 100644 > --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java > +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java > @@ -364,7 +364,7 @@ public class HRegion implements HeapSize { // , Writable{ > private HTableDescriptor htableDescriptor = null; > private RegionSplitPolicy splitPolicy; > > - private final MetricsRegion metricsRegion; > + private final MetricsRegion metricsRegion = null; > > /** > * Should only be used for testing purposes > @@ -388,7 +388,7 @@ public class HRegion implements HeapSize { // , Writable{ > this.coprocessorHost = null; > this.scannerReadPoints = new ConcurrentHashMap(); > > - this.metricsRegion = new MetricsRegion(new MetricsRegionWrapperImpl(this)); > + //this.metricsRegion = new MetricsRegion(new MetricsRegionWrapperImpl(this)); > } > > /** > @@ -451,7 +451,7 @@ public class HRegion implements HeapSize { // , Writable{ > this.regiondir = getRegionDir(this.tableDir, encodedNameStr); > this.scannerReadPoints = new ConcurrentHashMap(); > > - this.metricsRegion = new MetricsRegion(new MetricsRegionWrapperImpl(this)); > + //this.metricsRegion = new MetricsRegion(new MetricsRegionWrapperImpl(this)); > > /* > * timestamp.slop provides a server-side constraint on the timestamp. This > @@ -1024,7 +1024,7 @@ public class HRegion implements HeapSize { // , Writable{ > status.setStatus("Running coprocessor post-close hooks"); > this.coprocessorHost.postClose(abort); > } > - this.metricsRegion.close(); > + //this.metricsRegion.close(); > status.markComplete("Closed"); > LOG.info("Closed " + this); > return result; > @@ -2331,11 +2331,11 @@ public class HRegion implements HeapSize { // , Writable{ > if (noOfPuts > 0) { > // There were some Puts in the batch. > double noOfMutations = noOfPuts + noOfDeletes; > - this.metricsRegion.updatePut(); > + //this.metricsRegion.updatePut(); > } > if (noOfDeletes > 0) { > // There were some Deletes in the batch. > - this.metricsRegion.updateDelete(); > + //this.metricsRegion.updateDelete(); > } > if (!success) { > for (int i = firstIndex; i < lastIndexExclusive; i++) { > @@ -4270,7 +4270,7 @@ public class HRegion implements HeapSize { // , Writable{ > > // do after lock > > - this.metricsRegion.updateGet(); > + //this.metricsRegion.updateGet(); > > return results; > } > @@ -4657,7 +4657,7 @@ public class HRegion implements HeapSize { // , Writable{ > closeRegionOperation(); > } > > - this.metricsRegion.updateAppend(); > + //this.metricsRegion.updateAppend(); > > > if (flush) { > @@ -4795,7 +4795,7 @@ public class HRegion implements HeapSize { // , Writable{ > mvcc.completeMemstoreInsert(w); > } > closeRegionOperation(); > - this.metricsRegion.updateIncrement(); > + //this.metricsRegion.updateIncrement(); > } > > if (flush) { > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira