You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Heng Chen (JIRA)" <ji...@apache.org> on 2015/08/20 06:33:45 UTC

[jira] [Created] (HBASE-14265) we should forbidden create table using 'hbase' namespace

Heng Chen created HBASE-14265:
---------------------------------

             Summary: we should forbidden create table using 'hbase' namespace
                 Key: HBASE-14265
                 URL: https://issues.apache.org/jira/browse/HBASE-14265
             Project: HBase
          Issue Type: Bug
            Reporter: Heng Chen


Now, there is no limit for users who can create table under 'hbase' NameSpace. I think it has some risk.

Because we use {{TableName.systemTable}} to decide whether this table is System or not.

But as code,  {{TableName.systemTable}} will be true, if NS equals "hbase'
{code}
 if (Bytes.equals(NamespaceDescriptor.SYSTEM_NAMESPACE_NAME, namespace)) {
        this.namespace = NamespaceDescriptor.SYSTEM_NAMESPACE_NAME;
        this.namespaceAsString = NamespaceDescriptor.SYSTEM_NAMESPACE_NAME_STR;
        this.systemTable = true;
      } 
{code}
 
And we treat system table and normal table differently. 
For example,  https://issues.apache.org/jira/browse/HBASE-14257 will flush fast if table belong to system table.







--
This message was sent by Atlassian JIRA
(v6.3.4#6332)