Hello [email protected], Andrew Wong, Abhishek Chennaka,
I'd like you to do a code review. Please visit
http://gerrit.cloudera.org:8080/18029
to review the following change.
Change subject: [tools] KUDU-3337 Add unsafe_create_cmeta tool
......................................................................
[tools] KUDU-3337 Add unsafe_create_cmeta tool
We've seen some cases when a power outage on XFS lead to empty cmeta
files, causing some tablets to fail to start (KUDU-2195). There is a
flag to force fsync, but it's disabled by default.
Fortunately, it's possible to reconstruct how a cmeta should look like
based on the information found in ksck (peers) and WAL dumps (term and
config index). Still, the only way to actually create a cmeta file even
if this information is available, was to copy an existing cmeta file and
run "kudu pbc edit" on it, which is very error-prone and hard to
automate.
This commit introduces a new unsafe_create_cmeta tool under
local_replicam, which creates a new cmeta file based on the term, config
index and peers as provided in CLI arguments.
I manually tested this tool by using it to recover a tablet with three
empty cmeta files.
Change-Id: I136cc5b5797420a9ca9156f37c3e281da0c265d7
---
M src/kudu/tools/kudu-tool-test.cc
M src/kudu/tools/tool_action_local_replica.cc
2 files changed, 47 insertions(+), 0 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/29/18029/1
--
To view, visit http://gerrit.cloudera.org:8080/18029
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I136cc5b5797420a9ca9156f37c3e281da0c265d7
Gerrit-Change-Number: 18029
Gerrit-PatchSet: 1
Gerrit-Owner: Attila Bukor <[email protected]>
Gerrit-Reviewer: Abhishek Chennaka <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Anonymous Coward <[email protected]>