Skip to main content
Amn_468
Silver ⭐️⭐️⭐️
Jan 17, 2022 10:27 AM UTC
Solved

Kudu master consensus error

Hi,

 

I am getting error when I run kudu ksck command

 

Errors:
==================
Corruption: master consensus error: there are master consensus conflicts

FAILED
Runtime error: ksck discovered errors

 

All 3 Masters & Tablet server are reported as healthy, Any assistance / pointer in fixing this error.

 

Thanks 

 

ChrisGe
ChrisGeAnswer
Gold ⭐️
Jan 19, 2022 12:15 AM UTC

apparently,  you have mismatch UUIDs for the 'master3.com' 

peers { permanent_uuid: "8be74245ecaf4b5baf18b24dbc730922" member_type: VOTER last_known_addr { host: "master3.com" port: 7051 } }

 

as I can not see this UUID in consensus matrix 

  A = 865af50ae13e4cfagh5719b865d6716a
B = c8d59ba15dbb4578900f597bb48bd9e0
C = 8be74245ecaf4b5baf18b24dbc7318ea

 

so what you can do now is to manually modify the consensus metadata on this 'B' host, so you need to stop this Kudu master role on 'B' host, then locate the directory - 'consensus-meta' on this  host (this folder could be either under the directory of 'fs_wal_dir' , or the first disk of 'fs_data_dirs'),  then you will use "kudu pbc dump 00000000000000000000000000000000" to check the all peers UUID, and I believe you will see the same wrong UUID - '8be74245ecaf4b5baf18b24dbc730922' in the output.

 

The actions you can take is to backup this 00000000000000000000000000000000 file, and use 'kudu pbc edit 00000000000000000000000000000000' to change the wrong UUID to '8be74245ecaf4b5baf18b24dbc7318ea' (the data displayed in "kudu pbc edit' is encoded UUID string, so you may want to check other 2 Master hosts to get the encoded UUID string.

 

after above, then you restart this master to see if this issue can be fixed.

 

 

 

 

5 replies

ChrisGe
Gold ⭐️
Gold ⭐️
Jan 18, 2022 5:59 AM UTC

Can you attach the full ksck report for review?

 

is there any consensus matrix shown in ksck report? 

Translate
Amn_468
Amn_468Author
Silver ⭐️⭐️⭐️
Jan 18, 2022 6:43 AM UTC

@ChrisGe 

 

Cannot attach ksck report due to company infosec policy.

Regarding consensus matrix is the below you are looking for ??

 

All reported replicas are:
A = 865af50ae13e4cfagh5719b865d6716a
B = c8d59ba15dbb4578900f597bb48bd9e0
C = 8be74245ecaf4b5baf18b24dbc7318ea
The consensus matrix is:
Config source | Replicas | Current term | Config index | Committed?
---------------+--------------+--------------+--------------+------------
A | A* B C | 68 | -1 | Yes
B | A B C | 68 | -1 | Yes
C | A* B C | 68 | -1 | Yes

 

Translate
ChrisGe
Gold ⭐️
Gold ⭐️
Jan 18, 2022 6:57 AM UTC

Thanks, so the matrix shows that both 'A' and 'C' think the leader master is 'A',  But 'B' thinks no leader master 

 

So you may want to check the master log on 'B' host to figure out why it failed to vote a leader in election cycle. 

Translate