Hello Alexey Serbin, Yuqi Du, Yifan Zhang, Kudu Jenkins, KeDeng, I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/19357 to look at the new patch set (#3). Change subject: [tools] Add 'kudu local_replica edit_metadata delete_rowsets' to delete rowsets from tablet ...................................................................... [tools] Add 'kudu local_replica edit_metadata 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 corruption in a single point 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-3376). Note: no data will be lost in this case. Although we can use 'kudu pbc edit' to achieve this aim, but it's very hard to operate when the tablet-metadata is dozens of megabytes. This patch introduce a CLI tool 'kudu local_replica edit_metadata delete_rowsets' to delete rowsets from a tablet, which is easier to use. Change-Id: If2cf9035babf4c3af4c238cebe8dcecd2c65848f --- 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, 255 insertions(+), 2 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/57/19357/3 -- 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: newpatchset Gerrit-Change-Id: If2cf9035babf4c3af4c238cebe8dcecd2c65848f Gerrit-Change-Number: 19357 Gerrit-PatchSet: 3 Gerrit-Owner: Yingchun Lai <acelyc1112...@gmail.com> Gerrit-Reviewer: Alexey Serbin <ale...@apache.org> Gerrit-Reviewer: KeDeng <kdeng...@gmail.com> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Yifan Zhang <chinazhangyi...@163.com> Gerrit-Reviewer: Yingchun Lai <acelyc1112...@gmail.com> Gerrit-Reviewer: Yuqi Du <shenxingwuy...@gmail.com>