Re: Question related to nodetool repair options
Thanks Erick! It is clear now. On Tue, Sep 7, 2021 at 4:07 PM Erick Ramirez wrote: > No, I'm just saying that [-pr] is the same as [-pr -full], NOT the same as > just [-full] on its own. Primary range repairs are not compatible with > incremental repairs so by definition, -pr is a [-pr -full] repair. I think > you're confusing the concept of a full repair vs incremental. This document > might help you understand the concepts -- > https://docs.datastax.com/en/cassandra-oss/3.x/cassandra/operations/opsRepairNodesManualRepair.html. > Cheers! > >>
Re: Question related to nodetool repair options
No, I'm just saying that [-pr] is the same as [-pr -full], NOT the same as just [-full] on its own. Primary range repairs are not compatible with incremental repairs so by definition, -pr is a [-pr -full] repair. I think you're confusing the concept of a full repair vs incremental. This document might help you understand the concepts -- https://docs.datastax.com/en/cassandra-oss/3.x/cassandra/operations/opsRepairNodesManualRepair.html. Cheers! >
Re: Question related to nodetool repair options
Thanks Erick for the response. So in option 3, -pr is not taken into consideration which essentially means option 3 is the same as option 1 (which is the full repair). Right, just want to be sure? Best, Deepak On Tue, Sep 7, 2021 at 3:41 PM Erick Ramirez wrote: > >1. Will perform a full repair vs incremental which is the default in >some later versions. >2. As you said, will only repair the token range(s) on the node for >which it is a primary owner. >3. The -full flag with -pr is redundant -- primary range repairs are >always done as a full repair because it is not compatible with incremental >repairs,, i.e. -pr doesn't care that an SSTable is already marked as >repaired. > >
Re: Question related to nodetool repair options
1. Will perform a full repair vs incremental which is the default in some later versions. 2. As you said, will only repair the token range(s) on the node for which it is a primary owner. 3. The -full flag with -pr is redundant -- primary range repairs are always done as a full repair because it is not compatible with incremental repairs,, i.e. -pr doesn't care that an SSTable is already marked as repaired.
Question related to nodetool repair options
Hi There, We are on Cassandra 3.0.11 and I want to understand what is the difference between following two commands 1. nodetool repair -full 2. nodetool repair -pr 3. nodetool repair -full -pr As per my understanding 1. will do the full repair across all keyspaces. 2. with -pr, restricts repair to the 'primary' token ranges of the node being repaired. With 3. I am not sure what we are trying to achieve. Thanks, Deepak