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 44AB818268 for ; Wed, 18 Nov 2015 22:18:12 +0000 (UTC) Received: (qmail 85389 invoked by uid 500); 18 Nov 2015 22:18:11 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 85044 invoked by uid 500); 18 Nov 2015 22:18:11 -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 84865 invoked by uid 99); 18 Nov 2015 22:18:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Nov 2015 22:18:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 4559D2C1F72 for ; Wed, 18 Nov 2015 22:18:11 +0000 (UTC) Date: Wed, 18 Nov 2015 22:18:11 +0000 (UTC) From: "Eungsop Yoo (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-14824) HBaseAdmin.mergeRegions should use full region names instead of encoded region names 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-14824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15012172#comment-15012172 ] Eungsop Yoo commented on HBASE-14824: ------------------------------------- I'm done. > HBaseAdmin.mergeRegions should use full region names instead of encoded region names > ------------------------------------------------------------------------------------ > > Key: HBASE-14824 > URL: https://issues.apache.org/jira/browse/HBASE-14824 > Project: HBase > Issue Type: Bug > Reporter: Eungsop Yoo > Priority: Minor > Attachments: HBASE-14824-v1.patch, HBASE-14824-v2.patch, HBASE-14824.patch > > > HBaseAdmin.mergeRegions() calls HBaseAdmin.getRegion() internally. HBaseAdmin.getRegion() requires the full region name. So MetaTableAccessor.getRegion always returns null and this causes one more meta table scan. > {code} > Pair getRegion(final byte[] regionName) throws IOException { > if (regionName == null) { > throw new IllegalArgumentException("Pass a table name or region name"); > } > Pair pair = > MetaTableAccessor.getRegion(connection, regionName); > if (pair == null) { > {code} > I suppose to use full region names instead of encoded region names in HBaseAdmin.mergeRegions(). -- This message was sent by Atlassian JIRA (v6.3.4#6332)