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 A2A9E10348 for ; Tue, 24 Dec 2013 01:19:51 +0000 (UTC) Received: (qmail 30474 invoked by uid 500); 24 Dec 2013 01:19:51 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 30435 invoked by uid 500); 24 Dec 2013 01:19: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 30426 invoked by uid 99); 24 Dec 2013 01:19:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Dec 2013 01:19:51 +0000 Date: Tue, 24 Dec 2013 01:19:51 +0000 (UTC) From: "Hudson (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=13856072#comment-13856072 ] Hudson commented on HBASE-10225: -------------------------------- SUCCESS: Integrated in HBase-TRUNK-on-Hadoop-1.1 #20 (See [https://builds.apache.org/job/HBase-TRUNK-on-Hadoop-1.1/20/]) HBASE-10225 Bug in calls to RegionObsever.postScannerFilterRow (anoopsamjohn: rev 1553079) * /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/BaseRegionObserver.java * /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/RegionObserver.java * /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java * /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RegionCoprocessorHost.java * /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/ReversedRegionScannerImpl.java > 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 > Assignee: Anoop Sam John > Fix For: 0.98.0, 0.94.16, 0.96.2, 0.99.0 > > Attachments: 10225-0.94.txt, 10225-0.96.txt, HBASE-10225.patch > > > 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)