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 36DBC116E8 for ; Wed, 23 Jul 2014 04:56:39 +0000 (UTC) Received: (qmail 82330 invoked by uid 500); 23 Jul 2014 04:56:39 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 82291 invoked by uid 500); 23 Jul 2014 04:56:39 -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 82276 invoked by uid 99); 23 Jul 2014 04:56:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2014 04:56:38 +0000 Date: Wed, 23 Jul 2014 04:56:38 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-11064) Odd behaviors of TableName for empty namespace 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-11064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14071366#comment-14071366 ] Hudson commented on HBASE-11064: -------------------------------- SUCCESS: Integrated in HBase-0.98-on-Hadoop-1.1 #395 (See [https://builds.apache.org/job/HBase-0.98-on-Hadoop-1.1/395/]) HBASE-11064 Odd behaviors of TableName for empty namespace (Rekha Joshi) (enis: rev 4036cbcd7a8e830fd718dca6402fe087743737a2) * hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestTableName.java * hbase-common/src/main/java/org/apache/hadoop/hbase/TableName.java > Odd behaviors of TableName for empty namespace > ---------------------------------------------- > > Key: HBASE-11064 > URL: https://issues.apache.org/jira/browse/HBASE-11064 > Project: HBase > Issue Type: Bug > Affects Versions: 0.98.3 > Reporter: Hiroshi Ikeda > Assignee: Rekha Joshi > Priority: Trivial > Fix For: 0.99.0, 0.98.5, 2.0.0 > > Attachments: HBASE-11064.1.patch, HBASE-11064.2.patch, HBASE-11064.2.patch, HBASE-11064.3.patch > > > In the class TableName, > {code} > public static byte [] isLegalFullyQualifiedTableName(final byte[] tableName) { > ... > int namespaceDelimIndex = ... > if (namespaceDelimIndex == 0 || namespaceDelimIndex == -1){ > isLegalTableQualifierName(tableName); > } else { > ... > {code} > That means, for example, giving ":a" as the argument throws an exception which says invalid qualifier, instead of invalid namespace. > Also, TableName.valueOf(String) and valueOf(byte[]) can create an instance with empty namespace, which is inconsistent. -- This message was sent by Atlassian JIRA (v6.2#6252)