Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I disable incremental repair?

I have a cluster which I am considering enabling incremental repair on. If anything goes wrong I'd like to disable incremental repair on every node. How do I do that?

like image 592
Ztyx Avatar asked Feb 05 '23 01:02

Ztyx


1 Answers

Turn node off and use sstablerepairedset to remove the repair time for each sstable so that they will all be candidates for future compactions.

find '/path/cassandra/data/keyspace/table/' -iname "*Data.db*" > sstables.txt

sudo -u cassandra sstablerepairedset --is-unrepaired -f sstables.txt

Then just go back to using repair with no -inc or in later versions use the -full flag

like image 58
Chris Lohfink Avatar answered Feb 20 '23 19:02

Chris Lohfink