hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Purtell (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-11064) Odd behaviors of TableName for empty namespace
Date Sun, 08 Jun 2014 21:15:03 GMT

    [ https://issues.apache.org/jira/browse/HBASE-11064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14021338#comment-14021338
] 

Andrew Purtell commented on HBASE-11064:
----------------------------------------

Any chance for a patch [~rekhajoshm]?

> 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
>            Assignee: Rekha Joshi
>            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)

Mime
View raw message