[ 
https://issues.apache.org/jira/browse/KUDU-3337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17783766#comment-17783766
 ] 

ASF subversion and git services commented on KUDU-3337:
-------------------------------------------------------

Commit 13a66ea9b088eec1de74249b738cc74333eefc4a in kudu's branch 
refs/heads/master from Attila Bukor
[ https://gitbox.apache.org/repos/asf?p=kudu.git;h=13a66ea9b ]

[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 except for XFS.

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_replica, 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
Reviewed-on: http://gerrit.cloudera.org:8080/18029
Tested-by: Kudu Jenkins
Reviewed-by: Alexey Serbin <ale...@apache.org>


> Tool to manually create cmeta files
> -----------------------------------
>
>                 Key: KUDU-3337
>                 URL: https://issues.apache.org/jira/browse/KUDU-3337
>             Project: Kudu
>          Issue Type: New Feature
>            Reporter: Attila Bukor
>            Assignee: Attila Bukor
>            Priority: Major
>
> Power outages can lead to empty cmeta files on XFS (KUDU-2195), and sometimes 
> all replicas are affected. By checking the ksck output and the WAL dumps it's 
> possible to reconstruct how the cmeta should look like, except for the 
> voted_for part, but that isn't required to be able to bootstrap a tablet, so 
> a tool to manually create a cmeta file would be useful to recover such 
> tablets.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to