{
  "slug": "read-repair",
  "term": "Read repair",
  "aliases": [],
  "definition": "Read repair reconciles divergent replicas as part of processing a read request.",
  "note": "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. [read]\n\nALL 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. [point-tests] [query-helper] [execution-helper]\n\nA 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. [repair-tests]\n\nA 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. [pbs]",
  "status": "shipping",
  "advantages": [],
  "limitations": [
    {
      "text": "A read does not establish agreement for unqueried data or every replica.",
      "citationIds": [
        "read"
      ]
    }
  ],
  "related": [
    "direct-recovery",
    "anti-entropy-repair",
    "hinted-handoff",
    "monotonic-reads",
    "read-quorum",
    "quorum-read-writeback",
    "version-vector",
    "dotted-version-vector"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-11",
  "citations": [
    {
      "id": "read",
      "title": "Apache Cassandra 5.0.0: Read repair",
      "url": "https://raw.githubusercontent.com/apache/cassandra/cassandra-5.0.0/doc/modules/cassandra/pages/managing/operating/read_repair.adoc",
      "accessed": "2026-10-13"
    },
    {
      "id": "hesela-repair",
      "title": "Replica repair: what has actually converged?",
      "url": "https://hesela.com/analyses/replica-repair-coverage/",
      "accessed": "2026-10-13"
    },
    {
      "id": "point-tests",
      "title": "Apache Cassandra 5.0.0: ReadRepairPointQueriesTest.java",
      "url": "https://raw.githubusercontent.com/apache/cassandra/186272edca920c757b91bf95c2392bafa1a38d72/test/distributed/org/apache/cassandra/distributed/test/ReadRepairPointQueriesTest.java",
      "accessed": "2026-10-26"
    },
    {
      "id": "query-helper",
      "title": "Apache Cassandra 5.0.0: ReadRepairQueryTester.java",
      "url": "https://raw.githubusercontent.com/apache/cassandra/186272edca920c757b91bf95c2392bafa1a38d72/test/distributed/org/apache/cassandra/distributed/test/ReadRepairQueryTester.java",
      "accessed": "2026-10-26"
    },
    {
      "id": "execution-helper",
      "title": "Apache Cassandra 5.0.0: ReadRepairTester.java",
      "url": "https://raw.githubusercontent.com/apache/cassandra/186272edca920c757b91bf95c2392bafa1a38d72/test/distributed/org/apache/cassandra/distributed/test/ReadRepairTester.java",
      "accessed": "2026-10-26"
    },
    {
      "id": "repair-tests",
      "title": "Apache Cassandra 5.0.0: ReadRepairTest.java",
      "url": "https://raw.githubusercontent.com/apache/cassandra/186272edca920c757b91bf95c2392bafa1a38d72/test/distributed/org/apache/cassandra/distributed/test/ReadRepairTest.java",
      "accessed": "2026-10-26"
    },
    {
      "id": "pbs",
      "title": "Bailis et al. Probabilistically Bounded Staleness for Practical Partial Quorums. PVLDB 5(8), 776-787 (2012), section 4.3.",
      "url": "https://www.vldb.org/pvldb/vol5/p776_peterbailis_vldb2012.pdf",
      "accessed": "2026-10-26"
    }
  ]
}
