Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 01512200BF6 for ; Tue, 6 Dec 2016 00:56:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id F39EE160B2D; Mon, 5 Dec 2016 23:55:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 774E3160B21 for ; Tue, 6 Dec 2016 00:55:59 +0100 (CET) Received: (qmail 32061 invoked by uid 500); 5 Dec 2016 23:55:58 -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 32046 invoked by uid 99); 5 Dec 2016 23:55:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2016 23:55:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 729E72C2A66 for ; Mon, 5 Dec 2016 23:55:58 +0000 (UTC) Date: Mon, 5 Dec 2016 23:55:58 +0000 (UTC) From: "huaxiang sun (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-17250) For Get and scan in one case, checkFamily can be skipped in Region#getScanner MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 05 Dec 2016 23:56:00 -0000 [ https://issues.apache.org/jira/browse/HBASE-17250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] huaxiang sun updated HBASE-17250: --------------------------------- Attachment: HBASE-17250-master-001.patch Upload an initial patch. May not be a good idea to expose implementation details through getScanner() interface. But I could find a way to better pass the flag around. There are other places such as https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java#L6894 which similar skipCheckFamily can be applied. If folks agrees that this is the right approach to take, will upload a comprehensive patch, thanks. > For Get and scan in one case, checkFamily can be skipped in Region#getScanner > ----------------------------------------------------------------------------- > > Key: HBASE-17250 > URL: https://issues.apache.org/jira/browse/HBASE-17250 > Project: HBase > Issue Type: Improvement > Affects Versions: 2.0.0 > Reporter: huaxiang sun > Assignee: huaxiang sun > Priority: Minor > Attachments: HBASE-17250-master-001.patch > > > For get(), checkFamily is done in prepareGet(), so checkFamily can be skipped in Region#getScanner(). For scan(), if there is no Family configured in scan, the families are from table descriptor, so checkFamily in Region#getScanner(). can be skipped in this case. -- This message was sent by Atlassian JIRA (v6.3.4#6332)