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 550FB200BC1 for ; Wed, 2 Nov 2016 04:03:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 53B57160B0B; Wed, 2 Nov 2016 03:03:00 +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 A12D9160B02 for ; Wed, 2 Nov 2016 04:02:59 +0100 (CET) Received: (qmail 69455 invoked by uid 500); 2 Nov 2016 03:02: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 69391 invoked by uid 99); 2 Nov 2016 03:02:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2016 03:02:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5AC692C14F9 for ; Wed, 2 Nov 2016 03:02:58 +0000 (UTC) Date: Wed, 2 Nov 2016 03:02:58 +0000 (UTC) From: "Guanghao Zhang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-16985) TestClusterId failed due to wrong hbase rootdir MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 02 Nov 2016 03:03:00 -0000 [ https://issues.apache.org/jira/browse/HBASE-16985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guanghao Zhang updated HBASE-16985: ----------------------------------- Attachment: HBASE-16985-branch-1.patch Attach patch for branch-1. I run TestClusterId several times locally and all passed. > TestClusterId failed due to wrong hbase rootdir > ----------------------------------------------- > > Key: HBASE-16985 > URL: https://issues.apache.org/jira/browse/HBASE-16985 > Project: HBase > Issue Type: Bug > Reporter: Guanghao Zhang > Assignee: Guanghao Zhang > Priority: Minor > Attachments: HBASE-16985-branch-1.patch > > > https://builds.apache.org/job/PreCommit-HBASE-Build/4253/testReport/org.apache.hadoop.hbase.regionserver/TestClusterId/testClusterId/ > {code} > java.io.IOException: Shutting down > at org.apache.hadoop.hbase.util.JVMClusterUtil.startup(JVMClusterUtil.java:230) > at org.apache.hadoop.hbase.LocalHBaseCluster.startup(LocalHBaseCluster.java:409) > at org.apache.hadoop.hbase.MiniHBaseCluster.init(MiniHBaseCluster.java:227) > at org.apache.hadoop.hbase.MiniHBaseCluster.(MiniHBaseCluster.java:96) > at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniHBaseCluster(HBaseTestingUtility.java:1071) > at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniHBaseCluster(HBaseTestingUtility.java:1037) > at org.apache.hadoop.hbase.regionserver.TestClusterId.testClusterId(TestClusterId.java:85) > {code} > The cluster can not start up because there are no active master. The active master can not finish initialing because the hbase:namespace region can not be assign. > In TestClusterId unit test, TEST_UTIL.startMiniHBaseCluster set new hbase root dir. But the regionserver thread which stared first used a different hbase root dir. If assign hbase:namespace region to this regionserver, the region can not be assigned because there are no tableinfo on wrong hbase root dir. > When regionserver report to master, it will get back some new config. But the FSTableDescriptors has been initialed so it's root dir didn't changed. > {code} > if (LOG.isDebugEnabled()) { > LOG.info("Config from master: " + key + "=" + value); > } > {code} > I thought FSTableDescriptors need update the rootdir when regionserver get report from master. > The master branch has same problem, too. But the balancer always assign hbase:namesapce region to master. So this unit test can passed on master branch. -- This message was sent by Atlassian JIRA (v6.3.4#6332)