Will Berkeley has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/12372 )
Change subject: KUDU-2676 Support restoring tables over the maximum allowed replicas ...................................................................... KUDU-2676 Support restoring tables over the maximum allowed replicas Backup can backup any table, but restore could only restore tables with 60 or less tablets (with default settings) because Kudu limits the number of tablets created as part of creating a table. Additional tablets can be added by adding more range partitions. This patch fixes the issue by creating a restored table in two steps: 1. Creating the table with a single range partition (or no range partition if the table does not have any range partitions). 2. Creating all the rest of the range partitions by adding them one at a time. This happens up front before any rows are restored. There are two additional tests: 1. A test that creates, backs up, and restores a table with 101 range partitions. 2. A test that creates, backs up, and restores a table with 0 range partitions. Change-Id: If6527d083fc85c25ab0fa7d21cbb339f63374de6 Reviewed-on: http://gerrit.cloudera.org:8080/12372 Reviewed-by: Grant Henke <granthe...@apache.org> Tested-by: Kudu Jenkins Reviewed-by: Mike Percy <mpe...@apache.org> --- M java/kudu-backup/src/main/scala/org/apache/kudu/backup/KuduRestore.scala M java/kudu-backup/src/main/scala/org/apache/kudu/backup/TableMetadata.scala M java/kudu-backup/src/test/scala/org/apache/kudu/backup/TestKuduBackup.scala 3 files changed, 93 insertions(+), 16 deletions(-) Approvals: Grant Henke: Looks good to me, approved Kudu Jenkins: Verified Mike Percy: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/12372 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: If6527d083fc85c25ab0fa7d21cbb339f63374de6 Gerrit-Change-Number: 12372 Gerrit-PatchSet: 3 Gerrit-Owner: Will Berkeley <wdberke...@gmail.com> Gerrit-Reviewer: Adar Dembo <a...@cloudera.com> Gerrit-Reviewer: Grant Henke <granthe...@apache.org> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Mike Percy <mpe...@apache.org> Gerrit-Reviewer: Will Berkeley <wdberke...@gmail.com>