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 6435C9E38 for ; Fri, 23 Mar 2012 05:42:44 +0000 (UTC) Received: (qmail 98117 invoked by uid 500); 23 Mar 2012 05:42:44 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 98045 invoked by uid 500); 23 Mar 2012 05:42:44 -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 98032 invoked by uid 99); 23 Mar 2012 05:42:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Mar 2012 05:42:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Mar 2012 05:42:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A73A03417F9 for ; Fri, 23 Mar 2012 05:42:22 +0000 (UTC) Date: Fri, 23 Mar 2012 05:42:22 +0000 (UTC) From: "chunhui shen (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <665039324.6715.1332481342703.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1949871657.6589.1332478944224.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5624) Aborting regionserver when splitting region, may cause daughter region not assigned by ServerShutdownHandler. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-5624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13236356#comment-13236356 ] chunhui shen commented on HBASE-5624: ------------------------------------- @stack Yes, if cluster is all going down, master will assign region whose location is null when cluster is started up. However, if only one rs is stoped( or aborted by exception), master proceess it as dead server by ServerShutdownHandler, and the daughter regions whose location are null will not be assigned. > Aborting regionserver when splitting region, may cause daughter region not assigned by ServerShutdownHandler. > ------------------------------------------------------------------------------------------------------------- > > Key: HBASE-5624 > URL: https://issues.apache.org/jira/browse/HBASE-5624 > Project: HBase > Issue Type: Bug > Reporter: chunhui shen > Assignee: chunhui shen > Attachments: HBASE-5624.patch > > > If one region is splitting when regionserver is stoping. > The following code may executed in SplitTransaction#openDaughters. > {code} > // TODO: Is this check needed here? > if (stopped || stopping) { > // add 2nd daughter first (see HBASE-4335) > MetaEditor.addDaughter(server.getCatalogTracker(), > b.getRegionInfo(), null); > MetaEditor.addDaughter(server.getCatalogTracker(), > a.getRegionInfo(), null); > LOG.info("Not opening daughters " + > b.getRegionInfo().getRegionNameAsString() + > " and " + > a.getRegionInfo().getRegionNameAsString() + > " because stopping=" + stopping + ", stopped=" + stopped); > } > {code} > So, for the two daughter regions, their location are both null in .META. > When ServerShutdownHandler process the dead server, it will not assign these two daughter regions since their location(info:server) are null in .META. by MetaReader.getServerUserRegions(). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira