thelastpickle / cassandra-reaper

Automated Repair Awesomeness for Apache Cassandra
http://cassandra-reaper.io/
Apache License 2.0
490 stars 218 forks source link

What happens post a full repair on a particular table? #1268

Closed ankit-agarwal-E1304 closed 1 year ago

ankit-agarwal-E1304 commented 1 year ago

When running a full repair using nodetool, there is an anti-compaction at the end to segregate SStables into repaired and unrepaired sections. But when using reaper for a full repair of a table, I get this in cassandra logs - Not a global repair, will not do anticompaction

I want to understand how incremental repairs will work if no anticompaction is happening post a full repair.

Edit: I'm running repairs on apache cassandra 3.11 cluster

adejanovski commented 1 year ago

When running a full repair using nodetool, there is an anti-compaction at the end

It should not be the case anymore in Cassandra 4.x as it caused a lot of performance problems.

I want to understand how incremental repairs will work if no anticompaction is happening post a full repair.

Incremental will run on data that hasn't been repaired yet by another previous incremental repair.

ankit-agarwal-E1304 commented 1 year ago

@adejanovski Thanks for the response. I'm sorry, should have mentioned this in my query. I'm running this on apache cassandra 3.11 Does that change your response?

adejanovski commented 1 year ago

It does not. I'd advise against mixing nodetool repairs and reaper to avoid anticompaction since it will prevent repaired data from being compacted with unrepaired data. Also incremental repairs are buggy in 3.x and are only recommended starting with 4.0, and anticompaction is only interesting in the context of incremental repairs.

ankit-agarwal-E1304 commented 1 year ago

@adejanovski Thanks for clarifying. I've been working with nodetool till now and am exploring reaper for large sized clusters and scheduling auto-repairs. Are you suggesting I use full repairs all the time for my apache cassandra 3.11.x cluster?

ankit-agarwal-E1304 commented 1 year ago

@adejanovski With repairs using reaper, since cassandra does not perform anti-compactions, will the "percent repaired" metric in nodetool info never get updated?

adejanovski commented 1 year ago

It won't, that metric is only updated after anticompactions.

ankit-agarwal-E1304 commented 1 year ago

It won't, that metric is only updated after anticompactions.

How can i check and confirm repairs in that case?

adejanovski commented 1 year ago

If Reaper says repair went through without a problem, you're safe.

burmanm commented 1 year ago

Closing this ticket as answered. If you have further questions, please reopen.