You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Will Berkeley (JIRA)" <ji...@apache.org> on 2019/01/28 23:22:00 UTC

[jira] [Commented] (KUDU-2676) [Backup] Support restoring tables over the maximum allowed replicas

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

Will Berkeley commented on KUDU-2676:
-------------------------------------

We'll probably need to mimic the steps needed to create such a table. For example, if at most 60 tablets can be created at once, and a table has 12 hash partitions and 12 range partitions, the table must have been enlarged to its present number of tablets (144) by net adding 84 range partitions over time. So to restore it, we would start with 5 range partitions (5 * 12 = 60), then add in extra range partitions. This could be done all at once, when the restore table is created at the beginning of the restore process for the table, or we could amortize the cost of creating the tablets by adding a new range partition as work restoring other range partitions finishes and we want to kick off tasks to restore more tablets.

> [Backup] Support restoring tables over the maximum allowed replicas
> -------------------------------------------------------------------
>
>                 Key: KUDU-2676
>                 URL: https://issues.apache.org/jira/browse/KUDU-2676
>             Project: Kudu
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>            Reporter: Grant Henke
>            Priority: Major
>              Labels: backup
>
> Currently it is possible to backup a table that has more partitions than are allowed at create time. 
> This results in the restore job failing with the following exception:
> {noformat}
> 19/01/24 08:17:14 INFO backup.KuduRestore$: Restoring from path: hdfs:///user/ghenke/kudu-backup-tests/20190124-080741
> Exception in thread "main" org.apache.kudu.client.NonRecoverableException: the requested number of tablet replicas is over the maximum permitted at creation time (
> 450), additional tablets may be added by adding range partitions to the table post-creation
>         at org.apache.kudu.client.KuduException.transformException(KuduException.java:110)
>         at org.apache.kudu.client.KuduClient.joinAndHandleException(KuduClient.java:365)
>         at org.apache.kudu.client.KuduClient.createTable(KuduClient.java:109)
> {noformat}



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