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 12C77618B for ; Fri, 29 Jul 2011 13:37:40 +0000 (UTC) Received: (qmail 57929 invoked by uid 500); 29 Jul 2011 13:37:39 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 57882 invoked by uid 500); 29 Jul 2011 13:37:39 -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 57595 invoked by uid 99); 29 Jul 2011 13:37:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2011 13:37:38 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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, 29 Jul 2011 13:37:37 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1CDF53013CD for ; Fri, 29 Jul 2011 13:37:17 +0000 (UTC) Date: Fri, 29 Jul 2011 13:37:17 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: <2111894618.18500.1311946637115.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1566315974.12141.1311778989561.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HBASE-4144) RS does not abort if the initialization of RS fails 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-4144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ted Yu updated HBASE-4144: -------------------------- Resolution: Fixed Hadoop Flags: [Reviewed] Status: Resolved (was: Patch Available) > RS does not abort if the initialization of RS fails > ---------------------------------------------------- > > Key: HBASE-4144 > URL: https://issues.apache.org/jira/browse/HBASE-4144 > Project: HBase > Issue Type: Bug > Components: regionserver > Affects Versions: 0.90.3 > Reporter: ramkrishna.s.vasudevan > Assignee: ramkrishna.s.vasudevan > Priority: Minor > Attachments: HBASE-4144_0.90.patch, HBASE-4144_trunk.patch > > > If any exception occurs while initialization of RS the RS doesnot get > aborted whereas only the RPC server gets stopped. > private void preRegistrationInitialization() > throws IOException, InterruptedException { > try { > initializeZooKeeper(); > initializeThreads(); > int nbBlocks = conf.getInt("hbase.regionserver.nbreservationblocks",4); > for (int i = 0; i < nbBlocks; i++) { > reservedSpace.add(new > byte[HConstants.DEFAULT_SIZE_RESERVATION_BLOCK]); > } > } catch (Throwable t) { > // Call stop if error or process will stick around for ever since > server > // puts up non-daemon threads. > LOG.error("Stopping HRS because failed initialize", t); > this.rpcServer.stop(); > } > } > So if any exception occurs while initilization the RPC server gets stopped > but RS process is still running. But the log says stopping HRegionServer. > So in the below code the catch() block will be executed when the RPCServer > stop fails? > In all other cases it doesnt handle any initialization failure. > try { > // Do pre-registration initializations; zookeeper, lease threads,tc. > preRegistrationInitialization(); > } catch (Exception e) { > abort("Fatal exception during initialization", e); > } -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira