You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Akshit Jain <ak...@iiitd.ac.in> on 2017/09/01 12:46:52 UTC

Test repair command

​Hi everyone,
I'm new to cassandra.I was checking the nodetool repair command. I ran the
command and got success but I am not able to figure out how to check repair
has actually happened or not?
It would be a great help if somebody can suggest a way to do that in terms
of data check etc.

Re: Test repair command

Posted by Alain RODRIGUEZ <ar...@gmail.com>.
Hi,

To check that repairs are running, you should be able to see VALIDATION
compactions (using  'nodetool compactionstats -H'). You could also see some
streaming if you had some entropy (using 'nodetool netstats -H | grep -v
100%') during the repair.

To know roughly the state of your data, you can try to use the metric
'PercentRepaired'
(http://cassandra.apache.org/doc/latest/operating/metrics.html). The metric
is exposed in 'nodetool cfstats', according to the previous comment.

A more accurate way I used in the past is to grep logs. You should have a
known number of segments to repair per table depending on the number of
vnodes and the number of nodes.

The thing is you should be able to check that a consistent number of
segments is being repaired for each repair you run, as long as you run it
the same way.

You can try to find "repair" "Success" in your logs, grep this and then
count for each table and node. Comparing to the expected number or the
number from the previous run, you should manage to know if *every* segment
was repaired or not. This works even on the older Cassandra versions.

Finally, you can have a look at http://cassandra-reaper.io/ that Spotify
created and TLP is now maintaining. This tool automatically manages repairs
and it handles segment repair failures among other things.

C*heers,
-----------------------
Alain Rodriguez - @arodream - alain@thelastpickle.com
France

The Last Pickle - Apache Cassandra Consulting
http://www.thelastpickle.com

2017-09-04 13:02 GMT+01:00 kurt greaves <ku...@instaclustr.com>:

> Try checking the Percent Repaired reported in nodetool cfstats​
>

Re: Test repair command

Posted by kurt greaves <ku...@instaclustr.com>.
Try checking the Percent Repaired reported in nodetool cfstats​