Will Berkeley has uploaded this change for review. ( 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 --- 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, 99 insertions(+), 11 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/72/12372/1 -- 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: newchange Gerrit-Change-Id: If6527d083fc85c25ab0fa7d21cbb339f63374de6 Gerrit-Change-Number: 12372 Gerrit-PatchSet: 1 Gerrit-Owner: Will Berkeley <[email protected]>
