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 DF1949A32 for ; Fri, 11 Nov 2011 01:26:12 +0000 (UTC) Received: (qmail 26275 invoked by uid 500); 11 Nov 2011 01:26:12 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 26253 invoked by uid 500); 11 Nov 2011 01:26: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 26245 invoked by uid 99); 11 Nov 2011 01:26:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Nov 2011 01:26:12 +0000 X-ASF-Spam-Status: No, hits=-2001.2 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; Fri, 11 Nov 2011 01:26:11 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 943DD4C7A3 for ; Fri, 11 Nov 2011 01:25:51 +0000 (UTC) Date: Fri, 11 Nov 2011 01:25:51 +0000 (UTC) From: "Lars Hofhansl (Updated) (JIRA)" To: issues@hbase.apache.org Message-ID: <592917181.19733.1320974751608.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <30777449.232201294516863569.JavaMail.jira@thor> Subject: [jira] [Updated] (HBASE-3433) Remove the KV copy of every KV in Scan; introduced by HBASE-3232 (why doesn't keyonlyfilter make copies rather than mutate -- HBASE-3211)? 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-3433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lars Hofhansl updated HBASE-3433: --------------------------------- Attachment: 3433.txt Something like this. (TestFilter and TestFilterList still pass) Note that this is an API change, and that it subtly changes how FilterList interacts with KeyOnlyFilter (for the better I think, but, still, it is a change) > Remove the KV copy of every KV in Scan; introduced by HBASE-3232 (why doesn't keyonlyfilter make copies rather than mutate -- HBASE-3211)? > ------------------------------------------------------------------------------------------------------------------------------------------ > > Key: HBASE-3433 > URL: https://issues.apache.org/jira/browse/HBASE-3433 > Project: HBase > Issue Type: Improvement > Components: performance, regionserver > Reporter: stack > Priority: Critical > Fix For: 0.94.0 > > Attachments: 3433.txt, HBASE-3433-sidenote.patch > > > Here is offending code from inside in StoreScanner#next: > {code} > // kv is no longer immutable due to KeyOnlyFilter! use copy for safety > KeyValue copyKv = new KeyValue(kv.getBuffer(), kv.getOffset(), kv.getLength()); > {code} > This looks wrong given philosophy up to this has been avoidance of garbage-making copies. > Maybe this has been looked into before and this is the only thing to be done but why is KeyOnlyFilter not making copies rather than mutating originals? > Making this critical against 0.92. -- 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