You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Yingchun Lai (Code Review)" <ge...@cloudera.org> on 2022/12/16 17:07:51 UTC

[kudu-CR] [tools] Add 'kudu local replica edit metadata delete rowsets' to delete rowsets from tablet

Hello Alexey Serbin, Yuqi Du, Yifan Zhang, KeDeng, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/19357

to look at the new patch set (#2).

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/2
-- 
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: 2
Gerrit-Owner: Yingchun Lai <ac...@gmail.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <ac...@gmail.com>
Gerrit-Reviewer: Yuqi Du <sh...@gmail.com>