Read repair is ScyllaDB’s read-time reconciliation mechanism. When a coordinator compares responses from replicas and finds inconsistent data, it repairs divergent replicas while processing the read. section 8.4.2
A read repair proceeds according to the read response and requested consistency level:
- The coordinator receives copies of the requested data from replicas and detects a mismatch. section 8.4.2
- If the desired consistency level has not been satisfied, the coordinator repairs the replica synchronously. section 8.4.2
- If the desired consistency level is already satisfied, the coordinator performs the repair in the background. section 8.4.2
- With probabilistic read repair enabled, a request may query every replica, even when fewer replicas are needed for the requested consistency level. section 8.4.2
Repair during a read
A coordinator reads the same row from several replicas. If one response differs from the others, ScyllaDB uses the read to reconcile the mismatch: synchronously when the consistency requirement is not yet met, or in the background when it is already met. section 8.4.2
