hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guangxu Cheng (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-20220) [RSGroup] Check if table exists in the cluster before moving it to the specified regionserver group
Date Mon, 19 Mar 2018 16:52:00 GMT

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

Guangxu Cheng commented on HBASE-20220:
---------------------------------------

{quote}What if the exception changes in the future ? Would "Unknown table" always apply ?
{quote}
{code:java}
  
/** @param s message */
  public TableNotFoundException(String s) {
    super(s);
  }

  public TableNotFoundException(byte[] tableName) {
    super(Bytes.toString(tableName));
  }
{code}
The message of *TableNotFoundException* are of two types, the name of the table and common
message.The common message contains multiple words, so when there is only one word in the
message, the word is the name of the table.
The message is the name of the table in this issue. If there are multiple words, I will keep
the old processing logic.

> [RSGroup] Check if table exists in the cluster before moving it to the specified regionserver
group
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-20220
>                 URL: https://issues.apache.org/jira/browse/HBASE-20220
>             Project: HBase
>          Issue Type: Bug
>          Components: rsgroup
>    Affects Versions: 3.0.0
>            Reporter: Guangxu Cheng
>            Assignee: Guangxu Cheng
>            Priority: Major
>         Attachments: HBASE-20220.master.001.patch
>
>
> move_tables_rsgroup/move_servers_tables_rsgroup can move non-existent tables in the cluster
to the specified regionserver group successfully.It's not reasonable.We should check whether
the table has already existed in the cluster before moving the table.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message