Alexey Serbin has submitted this change and it was merged. Change subject: [tools] Manual recovery tools (part 1) ......................................................................
[tools] Manual recovery tools (part 1) This change introduces two recovery tools: 1) 'kudu remote_replica copy' copies the given tablet onto a destination server irrespective of the state of the destination replica (--force option provided). This is a port from https://gerrit.cloudera.org/#/c/3582/ 2) 'kudu local_replica delete' (KUDU-1618) deletes a local replica of a tablet when the tablet server can not come up due to a bad replica of a tablet. This tool should be used with caution, hence added a --clean_unsafe flag to warn the user with consequences. As of this change, tool supports deleting the tablet permanently if used with --clean_unsafe flag, and fails with 'unsupported action error' without the flag. A future patch will add a default action of tombstoning the tablet instead of permanently deleting it. Also added few tests exercising typical usage scenario for these tools. Added trace to stderr under existing RunAction routines to throw more info in the log if an action fails. Change-Id: I113a25e9b6c14f7c3814140917b61e35030b58d0 Reviewed-on: http://gerrit.cloudera.org:8080/4834 Tested-by: Kudu Jenkins Reviewed-by: Mike Percy <[email protected]> --- M src/kudu/integration-tests/cluster_itest_util.cc M src/kudu/integration-tests/cluster_itest_util.h M src/kudu/integration-tests/delete_table-test.cc M src/kudu/tools/CMakeLists.txt M src/kudu/tools/ksck_remote.cc M src/kudu/tools/kudu-tool-test.cc M src/kudu/tools/tool_action_common.cc M src/kudu/tools/tool_action_local_replica.cc M src/kudu/tools/tool_action_remote_replica.cc M src/kudu/tserver/ts_tablet_manager.cc M src/kudu/tserver/ts_tablet_manager.h 11 files changed, 456 insertions(+), 65 deletions(-) Approvals: Mike Percy: Looks good to me, approved Kudu Jenkins: Verified -- To view, visit http://gerrit.cloudera.org:8080/4834 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: merged Gerrit-Change-Id: I113a25e9b6c14f7c3814140917b61e35030b58d0 Gerrit-PatchSet: 18 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: Dinesh Bhat <[email protected]> Gerrit-Reviewer: Adar Dembo <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: David Ribeiro Alves <[email protected]> Gerrit-Reviewer: Dinesh Bhat <[email protected]> Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Mike Percy <[email protected]> Gerrit-Reviewer: Tidy Bot Gerrit-Reviewer: Todd Lipcon <[email protected]>
