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

Guangxu Cheng commented on HBASE-20243:
---------------------------------------

{quote} - don't we need shell test too?
 - use a variable NUM_SPLITS=2 and use that in variable initializations and 
asserts
 - Add tests for cases when a) source table doesn't exist, b) destination table 
exists. Basically, we should have tests for both success and failure 
scenarios.{quote}
OK, I will add it.
bq. - Does it compile? I don't see FAMILY_0 and 1 in declarations in 
TestAsyncTableAdminApi.java
FAMILY_0 and 1 have been declared in the parent class TestAsyncAdminBase.java
bq. - Any way we can refactor out the common code in test?
Let me try it.

 Thanks [~appy]

> [Shell] Add shell command to create a new table by cloning the existent table
> -----------------------------------------------------------------------------
>
>                 Key: HBASE-20243
>                 URL: https://issues.apache.org/jira/browse/HBASE-20243
>             Project: HBase
>          Issue Type: Improvement
>          Components: shell
>            Reporter: Guangxu Cheng
>            Assignee: Guangxu Cheng
>            Priority: Minor
>             Fix For: 2.1.0
>
>         Attachments: HBASE-20243.master.001.patch, 
> HBASE-20243.master.002.patch, HBASE-20243.master.003.patch, 
> HBASE-20243.master.004.patch, HBASE-20243.master.005.patch
>
>
> In the production environment, we need to create a new table every day. The 
> schema and the split keys of the table are the same as that of yesterday's 
> table, only the name of the table is different. For example, 
> xxxxx_20180321,xxxxx_20180322 etc.But now there is no convenient command to 
> do this. So we may need such a command(clone_table) to create a new table by 
> cloning the existent table.



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

Reply via email to