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 3D5DE9F2B for ; Fri, 23 Mar 2012 05:46:49 +0000 (UTC) Received: (qmail 5806 invoked by uid 500); 23 Mar 2012 05:46:46 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 5629 invoked by uid 500); 23 Mar 2012 05:46:46 -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 5529 invoked by uid 99); 23 Mar 2012 05:46:45 -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:46:45 +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:46:44 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CF4EF341CA9 for ; Fri, 23 Mar 2012 05:46:23 +0000 (UTC) Date: Fri, 23 Mar 2012 05:46:23 +0000 (UTC) From: "stack (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <473986592.6749.1332481583877.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=13236359#comment-13236359 ] stack commented on HBASE-5624: ------------------------------ @Chunhui Good catch. Lets see what hadoopqa says. > 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