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 BC888107F3 for ; Mon, 23 Dec 2013 05:12:15 +0000 (UTC) Received: (qmail 84644 invoked by uid 500); 23 Dec 2013 05:11:55 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 84589 invoked by uid 500); 23 Dec 2013 05:11:52 -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 84573 invoked by uid 99); 23 Dec 2013 05:11:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Dec 2013 05:11:51 +0000 Date: Mon, 23 Dec 2013 05:11:51 +0000 (UTC) From: "rajeshbabu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-10225) Bug in calls to RegionObsever.postScannerFilterRow 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-10225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13855388#comment-13855388 ] rajeshbabu commented on HBASE-10225: ------------------------------------ Yes Anoop, the hook has used in HIndex and the current row is not used. Its better to correct. > Bug in calls to RegionObsever.postScannerFilterRow > -------------------------------------------------- > > Key: HBASE-10225 > URL: https://issues.apache.org/jira/browse/HBASE-10225 > Project: HBase > Issue Type: Bug > Reporter: Lars Hofhansl > Fix For: 0.98.0, 0.94.16, 0.96.2, 0.99.0 > > > Just noticed that while looking at HBASE-10047. > In 0.94 (and presumably in trunk, will check later) we have this: > {code} > protected boolean nextRow(byte [] currentRow, int offset, short length) throws IOException { > ... > if (this.region.getCoprocessorHost() != null) { > return this.region.getCoprocessorHost().postScannerFilterRow(this, currentRow); > } > return true; > } > {code} > Notice how we only pass currentRow into the coprocessor, but not offset and length. Anything using this hook currently is 100% broken. The hook was added in 0.94.5 (HBASE-5664), it never worked correctly. > [~anoopsamjohn], you had added the hook. Do you still need it? > We can either remove it (I'd prefer that in the light of the performance issued observed in HBASE-10047, we can leave the stub in BaseRegionObserver in 0.94, but document that it is no-op), or we'd have to have change its signature to be able to pass offset and length as well. > Since nobody noticed nobody is using this hook currently, so both should be valid options. > (Making a new standalone copy of the rowkey just to pass into this method absolutely out of the question for performance reasons). -- This message was sent by Atlassian JIRA (v6.1.5#6160)