Sorry for very basic question however in DS201v6 Read Repair Quiz mentions that read repair always occurs when consistency level is set to ALL, If consistency level is set to All then wouldn't all replicas will have latest value of data ?
Sorry for very basic question however in DS201v6 Read Repair Quiz mentions that read repair always occurs when consistency level is set to ALL, If consistency level is set to All then wouldn't all replicas will have latest value of data ?
@tarunsundriyal2_179698 When performing a read request with consistency level ALL
, Cassandra compares the data on all the replicas. If a replica does not have the data, Cassandra writes the most recent version to the replica before returning the result to the client (app/driver).
You are probably thinking of write requests with a CL of ALL
. If a write with CL of ALL
is marked as successful, it does mean that all replicas are consistent. However, read-repair is an operation which only takes place for read requests, not write requests.
If you're interested, there's further information in Read Repair: repair during read path. Cheers!
5 People are following this question.
DataStax Enterprise is powered by the best distribution of Apache Cassandra ™
© 2023 DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.
Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.
Privacy Policy Terms of Use