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 9A51B7EA4 for ; Sat, 13 Aug 2011 20:01:52 +0000 (UTC) Received: (qmail 24578 invoked by uid 500); 13 Aug 2011 20:01:52 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 24531 invoked by uid 500); 13 Aug 2011 20:01:51 -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 24523 invoked by uid 99); 13 Aug 2011 20:01:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Aug 2011 20:01:51 +0000 X-ASF-Spam-Status: No, hits=-2000.8 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; Sat, 13 Aug 2011 20:01:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 966C2BB2A4 for ; Sat, 13 Aug 2011 20:01:27 +0000 (UTC) Date: Sat, 13 Aug 2011 20:01:27 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: <1018588044.36272.1313265687597.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1838747086.33911.1313170108734.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4197) RegionServer expects all scanner to be subclasses of HRegion.RegionScanner 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-4197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13084705#comment-13084705 ] Ted Yu commented on HBASE-4197: ------------------------------- See http://hbase.apache.org/book.html#eclipse which would tell you where to find formatter for Eclipse. > RegionServer expects all scanner to be subclasses of HRegion.RegionScanner > -------------------------------------------------------------------------- > > Key: HBASE-4197 > URL: https://issues.apache.org/jira/browse/HBASE-4197 > Project: HBase > Issue Type: Bug > Components: coprocessors > Affects Versions: 0.92.0 > Reporter: Lars Hofhansl > Attachments: 4197-bigger.txt, 4197-v2.txt, 4197.txt, ScannerTest.java > > > Returning just an InternalScanner from RegionObsever.{pre|post}OpenScanner leads to the following exception when using the scanner. > java.io.IOException: InternalScanner implementation is expected to be HRegion.RegionScanner. > at org.apache.hadoop.hbase.regionserver.HRegionServer.next(HRegionServer.java:2023) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:314) > at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1225) > The problem is in HRegionServer.next(...): > {code} > InternalScanner s = this.scanners.get(scannerName); > ... > // Call coprocessor. Get region info from scanner. > HRegion region = null; > if (s instanceof HRegion.RegionScanner) { > HRegion.RegionScanner rs = (HRegion.RegionScanner) s; > region = getRegion(rs.getRegionName().getRegionName()); > } else { > throw new IOException("InternalScanner implementation is expected " + > "to be HRegion.RegionScanner."); > } > {code} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira