Alexey Serbin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/19357 )
Change subject: [tools] Add 'kudu local_replica tmeta delete_rowsets' to delete rowsets from tablet ...................................................................... [tools] Add 'kudu local_replica tmeta delete_rowsets' to delete rowsets from tablet There are some use cases we need to delete rowsets from a tablet. For example: 1. Some blocks are corrupted in a single node cluster, the server cannot be started. Note: some data will be lost in this case. 2. Some rowsets are fully deleted but the blocks can not be GCed (KUDU-3367). Note: no data will be lost in this case. There is 'kudu pbc edit' CLI tool to achieve that, but it's error prone and hard to operate when working with large amount of data. This patch introduces a new CLI tool 'kudu local_replica tmeta delete_rowsets' which makes removing rowsets from a tablet much easier. Change-Id: If2cf9035babf4c3af4c238cebe8dcecd2c65848f Reviewed-on: http://gerrit.cloudera.org:8080/19357 Tested-by: Kudu Jenkins Reviewed-by: Alexey Serbin <[email protected]> --- M src/kudu/tablet/tablet_metadata.cc M src/kudu/tools/kudu-tool-test.cc M src/kudu/tools/tool_action_common.cc M src/kudu/tools/tool_action_common.h M src/kudu/tools/tool_action_local_replica.cc 5 files changed, 251 insertions(+), 2 deletions(-) Approvals: Kudu Jenkins: Verified Alexey Serbin: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/19357 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: If2cf9035babf4c3af4c238cebe8dcecd2c65848f Gerrit-Change-Number: 19357 Gerrit-PatchSet: 10 Gerrit-Owner: Yingchun Lai <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: KeDeng <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Wang Xixu <[email protected]> Gerrit-Reviewer: Yifan Zhang <[email protected]> Gerrit-Reviewer: Yingchun Lai <[email protected]> Gerrit-Reviewer: Yuqi Du <[email protected]>
