hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matteo Bertozzi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-7896) make rename_table working in 92/94
Date Mon, 01 Apr 2013 16:49:16 GMT

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

Matteo Bertozzi commented on HBASE-7896:
----------------------------------------

as I've said in the beginning, if we implement the rename as the current rb script...
a rename will cause a data loss for snapshots and clones on the renamed table.

A simple implementation of rename in 0.94 is:
{code}
rename(String oldTableName, String newTableName) {
    String snapshotName = randomName();
    snapshot(snapshotName, oldTableName);
    cloneSnapshot(snapshotName, newTableName);
    deleteSnapshot(snapshotName);
    deleteTable(oldTableName)
}
{code}
                
> make rename_table working in 92/94
> ----------------------------------
>
>                 Key: HBASE-7896
>                 URL: https://issues.apache.org/jira/browse/HBASE-7896
>             Project: HBase
>          Issue Type: Bug
>          Components: scripts
>    Affects Versions: 0.92.2, 0.94.5
>            Reporter: Tianying Chang
>            Assignee: Tianying Chang
>             Fix For: 0.92.3, 0.94.7
>
>         Attachments: rename_table.rb
>
>
> The rename_table function is very useful for our customers. However, rename_table.rb
does not work for 92/94. It has several bugs. It will be useful to fix them so that users
can solve their problems. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message