Yingchun Lai has uploaded this change for review. ( http://gerrit.cloudera.org:8080/19357
Change subject: [tools] Add 'kudu local_replica edit delete_rowsets' to delete rowsets from tablet ...................................................................... [tools] Add 'kudu local_replica edit delete_rowsets' to delete rowsets from tablet There are some 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. 2. Some rowsets are fully deleted but the blocks can not be GCed (KUDU-3376). Although we can use 'kudu pbc edit' to achieve this aim, but it's very hard when the tablet-metadata is dozens of megabyte. This patch introduce a CLI tool 'kudu local_replica edit 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, 206 insertions(+), 2 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/57/19357/1 -- 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: newchange Gerrit-Change-Id: If2cf9035babf4c3af4c238cebe8dcecd2c65848f Gerrit-Change-Number: 19357 Gerrit-PatchSet: 1 Gerrit-Owner: Yingchun Lai <acelyc1112...@gmail.com>