Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6DFED200B7C for ; Thu, 25 Aug 2016 06:56:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6C8C6160AB1; Thu, 25 Aug 2016 04:56:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B1977160AC1 for ; Thu, 25 Aug 2016 06:56:21 +0200 (CEST) Received: (qmail 35853 invoked by uid 500); 25 Aug 2016 04:56:20 -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 35474 invoked by uid 99); 25 Aug 2016 04:56:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2016 04:56:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 88DA82C0155 for ; Thu, 25 Aug 2016 04:56:20 +0000 (UTC) Date: Thu, 25 Aug 2016 04:56:20 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (HBASE-16462) TestRSGroupsBas#testGroupBalance may hang due to uneven region distribution MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 25 Aug 2016 04:56:22 -0000 [ https://issues.apache.org/jira/browse/HBASE-16462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ted Yu reassigned HBASE-16462: ------------------------------ Assignee: Guangxu Cheng > TestRSGroupsBas#testGroupBalance may hang due to uneven region distribution > --------------------------------------------------------------------------- > > Key: HBASE-16462 > URL: https://issues.apache.org/jira/browse/HBASE-16462 > Project: HBase > Issue Type: Bug > Reporter: Guangxu Cheng > Assignee: Guangxu Cheng > Attachments: HBASE-16462-v1.patch, HBASE-16462-v2.patch, HBASE-16462-v3.patch > > > show this fail when TestRSGroupsBase > {code} > testGroupBalance(org.apache.hadoop.hbase.rsgroup.TestRSGroups) Time elapsed: 309.517 sec <<< FAILURE! > java.lang.AssertionError: Waiting timed out after [300,000] msec > at org.junit.Assert.fail(Assert.java:88) > at org.apache.hadoop.hbase.Waiter.waitFor(Waiter.java:209) > at org.apache.hadoop.hbase.Waiter.waitFor(Waiter.java:143) > at org.apache.hadoop.hbase.HBaseTestingUtility.waitFor(HBaseTestingUtility.java:3816) > at org.apache.hadoop.hbase.rsgroup.TestRSGroupsBase.testGroupBalance(TestRSGroupsBase.java:434) > {code} > The exception may be caused by a bug. > {code:title=TestRSGroupsBase.java|borderStyle=solid} > rsGroupAdmin.balanceRSGroup(newGroupName); > TEST_UTIL.waitFor(WAIT_TIMEOUT, new Waiter.Predicate() { > @Override > public boolean evaluate() throws Exception { > for (List regions : getTableServerRegionMap().get(tableName).values()) { > if (2 != regions.size()) { > return false; > } > } > return true; > } > }); > {code} > The new Group has one table and three servers, and the table has six regions. > Beginning, all regions are located on a single server. > After balance, regions distributed on three server, preferably each server on two region. > However,this is not absolute. Maybe one server has one region, another server has three regions. > So, while waiting for the results of balance, we need only determine whether the region on the server, without having to check region's number. -- This message was sent by Atlassian JIRA (v6.3.4#6332)