Hello Mike Percy, Kudu Jenkins, Adar Dembo, Grant Henke,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/12372
to look at the new patch set (#2).
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, 93 insertions(+), 16 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/72/12372/2
--
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: newpatchset
Gerrit-Change-Id: If6527d083fc85c25ab0fa7d21cbb339f63374de6
Gerrit-Change-Number: 12372
Gerrit-PatchSet: 2
Gerrit-Owner: Will Berkeley <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Grant Henke <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Mike Percy <[email protected]>