Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

divyanshu.imsec_154140 avatar image
divyanshu.imsec_154140 asked Erick Ramirez answered

Why does primary range repair not work with -dc flag?

I am running C* 3.11 .

What is difference between the below two commands ? Here -dc parameter is not working. Any reason?

$nodetool repair -local -pr demo msisdn

output : Repair completed successfully

$nodetool repair -dc datacenter1 -pr demo msisdn

output : error: Primary range repair should be performed on all nodes in the cluster.

repair
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered

The -local and -dc flags limit the replicas which are repaired to a specific data centre.

Unlike localised repairs, primary range repairs (with the -pr flag) are designed to repair all replicas in all data centres. You can not use the -dc flag with -pr since they are mutually exclusive.

For more information, see Manual repairs in Cassandra. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.