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

Change subject: [tools] Run range aware cluster rebalance with multiple tables
......................................................................

[tools] Run range aware cluster rebalance with multiple tables

Previously when rebalancing cluster with kudu command line tool, the
`--enable_range_rebalancing` flag requires the `--tables` flag with exactly one
table specified.

This commit removes this restriction, allowing multiple tables to be passed to
the `--tables` flag when range rebalancing is enabled. Among them, range
partitioned tables will be rebalanced with ranges considered, while others are
rebalanced as usual. If the `--tables` flag is not set, all tables in the
cluster will be rebalanced.

This commit also optimizes the replica distribution details when range
rabalancing is applied to multiple tables with mixed partition schemas.

Change-Id: I7f6995496e6c28e6a3a8fa4b6f0e8efd05335267
Reviewed-on: http://gerrit.cloudera.org:8080/22239
Tested-by: Kudu Jenkins
Reviewed-by: Alexey Serbin <[email protected]>
---
M src/kudu/rebalance/cluster_status.h
M src/kudu/rebalance/rebalance-test.cc
M src/kudu/rebalance/rebalancer.cc
M src/kudu/tools/ksck.cc
M src/kudu/tools/rebalancer_tool-test.cc
M src/kudu/tools/rebalancer_tool.cc
M src/kudu/tools/tool_action_cluster.cc
7 files changed, 133 insertions(+), 21 deletions(-)

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

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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I7f6995496e6c28e6a3a8fa4b6f0e8efd05335267
Gerrit-Change-Number: 22239
Gerrit-PatchSet: 6
Gerrit-Owner: Derek Huang <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Derek Huang <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)

Reply via email to