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 7A7E0117D8 for ; Tue, 2 Sep 2014 23:18:53 +0000 (UTC) Received: (qmail 13391 invoked by uid 500); 2 Sep 2014 23:18:52 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 13338 invoked by uid 500); 2 Sep 2014 23:18: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 13236 invoked by uid 99); 2 Sep 2014 23:18:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Sep 2014 23:18:52 +0000 Date: Tue, 2 Sep 2014 23:18:52 +0000 (UTC) From: "Andrew Purtell (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-11876) RegionScanner.nextRaw(...) should not update metrics 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-11876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Purtell updated HBASE-11876: ----------------------------------- Attachment: HBASE-11876.patch > RegionScanner.nextRaw(...) should not update metrics > ---------------------------------------------------- > > Key: HBASE-11876 > URL: https://issues.apache.org/jira/browse/HBASE-11876 > Project: HBase > Issue Type: Bug > Affects Versions: 0.98.6 > Reporter: Lars Hofhansl > Assignee: Andrew Purtell > Fix For: 0.99.0, 2.0.0, 0.98.6 > > Attachments: HBASE-11876.patch, HBASE-11876.patch > > > I added the RegionScanner.nextRaw(...) to allow "smart" client to avoid some of the default work that HBase is doing, such as {start|stop}RegionOperation and synchronized(scanner) for each row. > Metrics should follow the same approach. Collecting them per row is expensive and a caller should have the option to collect those later or to avoid collecting them completely. > We can also save some cycles in RSRcpServices.scan(...) if we updated the metric only once/batch instead of each row. -- This message was sent by Atlassian JIRA (v6.3.4#6332)