Mike Percy has submitted this change and it was merged.

Change subject: [tools] Add a 'kudu tablet relocate' tool
......................................................................


[tools] Add a 'kudu tablet relocate' tool

This patch adds a relocate tool that moves a tablet replica from
one tablet server to another. Usage:

kudu tablet change_config relocate_replica <masters> <tablet id> <remove id> 
<add id>

It works by adding <add id> to the configuration, waiting for it
to tablet copy, then removing <remove id>. In the typical case,
this means the number of replicas will change 3 -> 4 -> 3, and
therefore the number of tolerable faults is 1 while the new
tablet bootstraps. As a result of this extra fragility, the tool
requires the tablet to be in "perfect health" when it runs,
meaning ksck returns no errors for the tablet, and also requires
the same after the copy is complete but before removing a
replica. This probably limits the usefulness of the tool to
rebalancing replicas within a healthy tablet.

Additionally, this makes some minimal changes to ksck to allow
it to print to other output streams besides stdout. The purpose
was to allow the output to be suppressed when running the tool,
since the use of ksck is an implementation detail, and the
output is noisy.

Change-Id: I3b7a7243333ba6e6a3d6fce96b220224d6e38a84
Reviewed-on: http://gerrit.cloudera.org:8080/7444
Tested-by: Kudu Jenkins
Reviewed-by: Mike Percy <[email protected]>
---
M src/kudu/tools/ksck-test.cc
M src/kudu/tools/ksck.cc
M src/kudu/tools/ksck.h
M src/kudu/tools/ksck_remote-test.cc
M src/kudu/tools/kudu-admin-test.cc
M src/kudu/tools/kudu-tool-test.cc
M src/kudu/tools/tool_action_tablet.cc
7 files changed, 371 insertions(+), 105 deletions(-)

Approvals:
  Mike Percy: Looks good to me, approved
  Kudu Jenkins: Verified



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I3b7a7243333ba6e6a3d6fce96b220224d6e38a84
Gerrit-PatchSet: 10
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Will Berkeley <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <[email protected]>
Gerrit-Reviewer: Tidy Bot
Gerrit-Reviewer: Todd Lipcon <[email protected]>
Gerrit-Reviewer: Will Berkeley <[email protected]>

Reply via email to