Read repair
Read repair is triggered during a read request. Consider a keyspace with replication factor 3. You send a write request to the cluster. The coordinator node will forward the write request to three relevant replica nodes. Suppose you read the same data with consistency QUORUM or TWO, and the coordinator node forwards the request to node 1 and 2. The coordinator node will then merge results from nodes 1 and 2 before returning them to the client. It will also trigger a background read repair on node 3, if enabled. This read repair ensures that the data on node 3 is in sync with nodes 1 and 2. In read repair, Cassandra sends a digest request to each replica not directly involved in the read. Cassandra compares all replicas and writes ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access