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 EB5AEDB99 for ; Thu, 17 Jan 2013 01:08:12 +0000 (UTC) Received: (qmail 50428 invoked by uid 500); 17 Jan 2013 01:08:12 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 50403 invoked by uid 500); 17 Jan 2013 01:08: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 50394 invoked by uid 99); 17 Jan 2013 01:08:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2013 01:08:12 +0000 Date: Thu, 17 Jan 2013 01:08:12 +0000 (UTC) From: "Matteo Bertozzi (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-7592) HConnectionManager.getHTableDescriptor() compares too much 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-7592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matteo Bertozzi updated HBASE-7592: ----------------------------------- Attachment: HBASE-7592-v1.patch I'm going to commit v1 (same as v0 but with no parentheses) if no objections > HConnectionManager.getHTableDescriptor() compares too much > ---------------------------------------------------------- > > Key: HBASE-7592 > URL: https://issues.apache.org/jira/browse/HBASE-7592 > Project: HBase > Issue Type: Bug > Components: Client > Affects Versions: 0.94.4 > Reporter: Matteo Bertozzi > Assignee: Matteo Bertozzi > Priority: Trivial > Attachments: HBASE-7592-v0.patch, HBASE-7592-v1.patch > > > in 0.94 getHTableDescriptor() looks at every htd instead of returning at the first found. (Trunks has already the early exit) > {code} > for (HTableDescriptor htd: htds) { > if (Bytes.equals(tableName, htd.getName())) { > hTableDescriptor = htd; > } > } > return htableDescriptor > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira