Read repair
Read repair reconciles divergent replicas as part of processing a read request.
When triggered, Cassandra 5.0.0 BLOCKING repairs queried data and waits for sufficient acknowledgements; NONE reconciles responses without repair writes. BLOCKING supports monotonic quorum reads, but a narrower read than write can expose partial partition updates. [1]
ALL counts replicas, not repaired columns. Cassandra 5.0.0 point-query tests expect a narrow read to leave unselected columns unrepaired; the helper uses ALL and checks each replica locally. Reading b also leaves a deletion of a unpropagated until a wider read. [3] [4] [5]
A timeout can follow an applied repair when its reply is lost. A separate zero-grace fixture expects no repair after tombstones were purged on one node. These are upstream test assertions reviewed by source inspection, not a cluster run or a production configuration recommendation. [6]
A late reply with a newer version is not by itself proof that an earlier read was stale: the PBS detector discussion also admits in-flight writes and writes committed after the read began. Replica version timestamps do not establish global commit order. This is a paper-level monitoring caveat, not a Cassandra detector implementation claim. [7]
Relations
- related
- DIRECT recovery, Anti-entropy repair, Hinted handoff, Monotonic reads, Read quorum, Quorum read write-back, Version vector, Dotted version vector
Limitations
- A read does not establish agreement for unqueried data or every replica. [1]
Citations
- Apache Cassandra 5.0.0: Read repair
- Apache Cassandra 5.0.0: ReadRepairPointQueriesTest.java
- Apache Cassandra 5.0.0: ReadRepairQueryTester.java
- Apache Cassandra 5.0.0: ReadRepairTester.java
- Apache Cassandra 5.0.0: ReadRepairTest.java
- Bailis et al. Probabilistically Bounded Staleness for Practical Partial Quorums. PVLDB 5(8), 776-787 (2012), section 4.3.