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 B16D890BE for ; Mon, 2 Apr 2012 22:19:45 +0000 (UTC) Received: (qmail 65474 invoked by uid 500); 2 Apr 2012 22:19:45 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 65444 invoked by uid 500); 2 Apr 2012 22:19:45 -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 65433 invoked by uid 99); 2 Apr 2012 22:19:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 22:19: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; Mon, 02 Apr 2012 22:19: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 2E615354D16 for ; Mon, 2 Apr 2012 22:19:24 +0000 (UTC) Date: Mon, 2 Apr 2012 22:19:24 +0000 (UTC) From: "Lars Hofhansl (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <1169679789.3438.1333405164191.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <812160085.46038.1324968150675.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5097) RegionObserver implementation whose preScannerOpen and postScannerOpen Impl return null can stall the system initialization through NPE 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-5097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13244736#comment-13244736 ] Lars Hofhansl commented on HBASE-5097: -------------------------------------- This can be closed, no? > RegionObserver implementation whose preScannerOpen and postScannerOpen Impl return null can stall the system initialization through NPE > --------------------------------------------------------------------------------------------------------------------------------------- > > Key: HBASE-5097 > URL: https://issues.apache.org/jira/browse/HBASE-5097 > Project: HBase > Issue Type: Bug > Components: coprocessors > Reporter: ramkrishna.s.vasudevan > Assignee: ramkrishna.s.vasudevan > Fix For: 0.92.2, 0.94.0, 0.96.0 > > Attachments: HBASE-5097.patch, HBASE-5097_1.patch, HBASE-5097_2.patch > > > In HRegionServer.java openScanner() > {code} > r.prepareScanner(scan); > RegionScanner s = null; > if (r.getCoprocessorHost() != null) { > s = r.getCoprocessorHost().preScannerOpen(scan); > } > if (s == null) { > s = r.getScanner(scan); > } > if (r.getCoprocessorHost() != null) { > s = r.getCoprocessorHost().postScannerOpen(scan, s); > } > {code} > If we dont have implemention for postScannerOpen the RegionScanner is null and so throwing nullpointer > {code} > java.lang.NullPointerException > at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:881) > at org.apache.hadoop.hbase.regionserver.HRegionServer.addScanner(HRegionServer.java:2282) > at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:2272) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:364) > at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1326) > {code} > Making this defect as blocker.. Pls feel free to change the priority if am wrong. Also correct me if my way of trying out coprocessors without implementing postScannerOpen is wrong. Am just a learner. -- 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