Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 372EC1141F for ; Thu, 24 Apr 2014 04:59:27 +0000 (UTC) Received: (qmail 87652 invoked by uid 500); 24 Apr 2014 04:59:21 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 86975 invoked by uid 500); 24 Apr 2014 04:59:16 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 86796 invoked by uid 99); 24 Apr 2014 04:59:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2014 04:59:14 +0000 Date: Thu, 24 Apr 2014 04:59:14 +0000 (UTC) From: "Hiroshi Ikeda (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (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 Hiroshi Ikeda created HBASE-11064: ------------------------------------- Summary: Odd behaviors of TableName for empty namespace Key: HBASE-11064 URL: https://issues.apache.org/jira/browse/HBASE-11064 Project: HBase Issue Type: Bug Reporter: Hiroshi Ikeda Priority: Trivial 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)