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 BC408200B82 for ; Fri, 12 Aug 2016 06:52:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BABA5160A93; Fri, 12 Aug 2016 04:52: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 0C1F6160A94 for ; Fri, 12 Aug 2016 06:52:21 +0200 (CEST) Received: (qmail 77220 invoked by uid 500); 12 Aug 2016 04:52:21 -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 77180 invoked by uid 99); 12 Aug 2016 04:52:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2016 04:52:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 969732C02A8 for ; Fri, 12 Aug 2016 04:52:20 +0000 (UTC) Date: Fri, 12 Aug 2016 04:52:20 +0000 (UTC) From: "Andrew Purtell (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-16402) RegionServerCoprocessorHost should be initialized before RpcServer starts MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 12 Aug 2016 04:52:22 -0000 [ https://issues.apache.org/jira/browse/HBASE-16402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15418366#comment-15418366 ] Andrew Purtell commented on HBASE-16402: ---------------------------------------- Pushed > RegionServerCoprocessorHost should be initialized before RpcServer starts > ------------------------------------------------------------------------- > > Key: HBASE-16402 > URL: https://issues.apache.org/jira/browse/HBASE-16402 > Project: HBase > Issue Type: Bug > Reporter: Guanghao Zhang > Assignee: Guanghao Zhang > Fix For: 0.98.22 > > Attachments: HBASE-16402-0.98.patch > > > We found NPE in our 0.98 production cluster because RegionServerCoprocessorHost is not initialized before RpcServer start service. > {code} > // Try and register with the Master; tell it we are here. Break if > // server is stopped or the clusterup flag is down or hdfs went wacky. > while (keepLooping()) { > RegionServerStartupResponse w = reportForDuty(); > if (w == null) { > LOG.warn("reportForDuty failed; sleeping and then retrying."); > this.sleeper.sleep(); > } else { > handleReportForDutyResponse(w); > break; > } > } > // Initialize the RegionServerCoprocessorHost now that our ephemeral > // node was created by reportForDuty, in case any coprocessors want > // to use ZooKeeper > this.rsHost = new RegionServerCoprocessorHost(this, this.conf); > {code} > RpcServer start service in handleReportForDutyResponse(), then it can serve rpc call replicateWALEntry(). But the RegionServerCoprocessorHost is not initialized and it is used in replicateWALEntry, so it will throw a NPE. -- This message was sent by Atlassian JIRA (v6.3.4#6332)