hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiroshi Ikeda (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-11064) Odd behaviors of TableName for empty namespace
Date Thu, 24 Apr 2014 04:59:14 GMT
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,
public static byte [] isLegalFullyQualifiedTableName(final byte[] tableName) {
int namespaceDelimIndex = ...
if (namespaceDelimIndex == 0 || namespaceDelimIndex == -1){
} else {

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

View raw message