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 3BA4011453 for ; Thu, 14 Aug 2014 17:16:12 +0000 (UTC) Received: (qmail 83095 invoked by uid 500); 14 Aug 2014 17:16:12 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 83042 invoked by uid 500); 14 Aug 2014 17:16:12 -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 83020 invoked by uid 99); 14 Aug 2014 17:16:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Aug 2014 17:16:12 +0000 Date: Thu, 14 Aug 2014 17:16:11 +0000 (UTC) From: "Lars Hofhansl (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-11745) FilterAllFilter should return ReturnCode.SKIP 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-11745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14097228#comment-14097228 ] Lars Hofhansl commented on HBASE-11745: --------------------------------------- Does it require hasFilterRow() to return true? > FilterAllFilter should return ReturnCode.SKIP > --------------------------------------------- > > Key: HBASE-11745 > URL: https://issues.apache.org/jira/browse/HBASE-11745 > Project: HBase > Issue Type: Bug > Reporter: Andrew Purtell > Assignee: Andrew Purtell > Fix For: 0.99.0, 2.0.0, 0.98.6 > > Attachments: HBASE-11745.patch > > > FilterAllFilter is a filter in hbase-server's test packages used by PerformanceEvaluation to filter all results at the server when given the --filterAll command line argument. There is an unfortunate bug in versions greater than 0.94 (where I rewrote this filter and didn't notice the issue in later versions at the time): > {code} > @Override > public ReturnCode filterKeyValue(Cell v) throws IOException { > return ReturnCode.INCLUDE; > } > {code} > This is obviously wrong, and results in the creation of KeyValue objects that we will almost immediately throw away when processing filterRow for backwards compatibility, which FilterAllFilter implements as: > {code} > @Override > public boolean filterRow() throws IOException { > return true; > } > {code} > We noticed this problem when comparing object allocations during RPC processing between 0.94 and 0.98. -- This message was sent by Atlassian JIRA (v6.2#6252)