Alexey Serbin has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/17674 )

Change subject: KUDU-3304: [Alter] Support to alter table's replication factor
......................................................................

KUDU-3304: [Alter] Support to alter table's replication factor

In some cases we want to increase a table's replciation factor. For
example, convert a test table to production table, fix a table's RF
which is created by a buggy program.

This patch adds a function to alter table's replication factor, supported
in CLI tool, and also add some unit tests.
The command looks like:
`kudu table set_replication_factor <master_addresses> <table_name> 
<replication_factor>`

It should be pointed out that the CLI tool will return immediately
without waiting for the RF change to be effective, new replicas are
being up and running when increase RF, duplicate replicas are being
shutdown when decrease RF asynchronous. You can use `kudu cluster ksck`
to check whether it has been effective.

Change-Id: I3aa2d5b12c508ba761fa9410ad1a465cf31fb7d7
Reviewed-on: http://gerrit.cloudera.org:8080/17674
Tested-by: Kudu Jenkins
Reviewed-by: Andrew Wong <[email protected]>
Reviewed-by: Alexey Serbin <[email protected]>
---
M src/kudu/client/client-test.cc
M src/kudu/client/client.h
M src/kudu/client/table_alterer-internal.cc
M src/kudu/client/table_alterer-internal.h
M src/kudu/integration-tests/alter_table-test.cc
M src/kudu/integration-tests/cluster_itest_util.cc
M src/kudu/integration-tests/cluster_itest_util.h
M src/kudu/integration-tests/test_workload.cc
M src/kudu/master/catalog_manager.cc
M src/kudu/master/catalog_manager.h
M src/kudu/master/master.proto
M src/kudu/master/master_service.cc
M src/kudu/tools/kudu-tool-test.cc
M src/kudu/tools/tool_action_table.cc
M src/kudu/tserver/heartbeater.cc
15 files changed, 641 insertions(+), 100 deletions(-)

Approvals:
  Kudu Jenkins: Verified
  Andrew Wong: Looks good to me, approved
  Alexey Serbin: Looks good to me, approved

--
To view, visit http://gerrit.cloudera.org:8080/17674
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I3aa2d5b12c508ba761fa9410ad1a465cf31fb7d7
Gerrit-Change-Number: 17674
Gerrit-PatchSet: 24
Gerrit-Owner: Yingchun Lai <[email protected]>
Gerrit-Reviewer: Abhishek Chennaka <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Bankim Bhavsar <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Reviewer: Yingchun Lai <[email protected]>

Reply via email to