{
  "schema_version": 1,
  "title": "Read repair: query scope and completion evidence",
  "evidence_type": "upstream-test-source-inspection",
  "native_tests_executed": false,
  "upstream_project": "Apache Cassandra",
  "upstream_release": "5.0.0",
  "upstream_commit": "186272edca920c757b91bf95c2392bafa1a38d72",
  "accessed_at": "2026-10-26T00:24:58.901860+00:00",
  "reviewed_at": "2026-10-26",
  "source_license": "Apache-2.0",
  "method": "Read the test setup, parameterization, distributed execution helper and local-state assertions together. Source identity checks do not execute Cassandra or validate its semantics.",
  "sources": [
    {
      "id": "read-doc",
      "path": "doc/modules/cassandra/pages/managing/operating/read_repair.adoc",
      "url": "https://raw.githubusercontent.com/apache/cassandra/186272edca920c757b91bf95c2392bafa1a38d72/doc/modules/cassandra/pages/managing/operating/read_repair.adoc",
      "sha256": "57d358568286779ab79dd726ed8ac5539e35134cac432afe3319a63202aa5760",
      "bytes": 12209,
      "locators": [
        {
          "symbol": "== Table level configuration",
          "line": 23
        },
        {
          "symbol": "=== Blocking",
          "line": 51
        },
        {
          "symbol": "=== None",
          "line": 58
        }
      ]
    },
    {
      "id": "point-tests",
      "path": "test/distributed/org/apache/cassandra/distributed/test/ReadRepairPointQueriesTest.java",
      "url": "https://raw.githubusercontent.com/apache/cassandra/186272edca920c757b91bf95c2392bafa1a38d72/test/distributed/org/apache/cassandra/distributed/test/ReadRepairPointQueriesTest.java",
      "sha256": "f3a195bea06b1069ce24b72fd9af053356380657d0f1644087c15a4c0ffd5fba",
      "bytes": 3069,
      "locators": [
        {
          "symbol": "void testPointQueryOnSkinnyTable",
          "line": 34
        },
        {
          "symbol": "void testPointQueryOnWideTable",
          "line": 57
        }
      ]
    },
    {
      "id": "query-helper",
      "path": "test/distributed/org/apache/cassandra/distributed/test/ReadRepairQueryTester.java",
      "url": "https://raw.githubusercontent.com/apache/cassandra/186272edca920c757b91bf95c2392bafa1a38d72/test/distributed/org/apache/cassandra/distributed/test/ReadRepairQueryTester.java",
      "sha256": "9fa2f3b2f7ee421efd2f88cbd3acf3c54505c9c205cd866caa27bc24cf344abb",
      "bytes": 12983,
      "locators": [
        {
          "symbol": "Collection<Object[]> data()",
          "line": 101
        },
        {
          "symbol": "Tester queryColumns(",
          "line": 167
        },
        {
          "symbol": "private Tester verifyQuery(",
          "line": 234
        }
      ]
    },
    {
      "id": "execution-helper",
      "path": "test/distributed/org/apache/cassandra/distributed/test/ReadRepairTester.java",
      "url": "https://raw.githubusercontent.com/apache/cassandra/186272edca920c757b91bf95c2392bafa1a38d72/test/distributed/org/apache/cassandra/distributed/test/ReadRepairTester.java",
      "sha256": "f85907019e78a71121e932241b6ac5c51ef60085b986a60a59115f194e773a79",
      "bytes": 5875,
      "locators": [
        {
          "symbol": "T mutate(",
          "line": 100
        },
        {
          "symbol": "private Object[][] queryDistributed(",
          "line": 113
        }
      ]
    },
    {
      "id": "repair-tests",
      "path": "test/distributed/org/apache/cassandra/distributed/test/ReadRepairTest.java",
      "url": "https://raw.githubusercontent.com/apache/cassandra/186272edca920c757b91bf95c2392bafa1a38d72/test/distributed/org/apache/cassandra/distributed/test/ReadRepairTest.java",
      "sha256": "25a54362643bbf0cc01d79f81b5ae5109f3d438bba77b6d64476e4c3239908bb",
      "bytes": 25814,
      "locators": [
        {
          "symbol": "void readRepairTimeoutTest()",
          "line": 125
        },
        {
          "symbol": "void testGCableTombstoneResurrectionOnRangeSliceQuery()",
          "line": 426
        }
      ]
    }
  ],
  "claims": [
    {
      "id": "all-projection",
      "status": "source-inspected",
      "statement": "The skinny-table BLOCKING test expects (1,2,null) at the repaired replica after selecting a at ALL; b is not repaired.",
      "source_ids": [
        "point-tests",
        "query-helper",
        "execution-helper",
        "read-doc"
      ],
      "locator": "testPointQueryOnSkinnyTable -> queryColumns -> queryDistributed -> verifyQuery",
      "limit": "Setup uses internal single-replica mutations, not a captured failed client batch."
    },
    {
      "id": "unselected-deletion",
      "status": "source-inspected",
      "statement": "After deleting a on one replica, selecting b leaves the other replica's a unchanged until the wider query.",
      "source_ids": [
        "point-tests",
        "query-helper",
        "execution-helper"
      ],
      "locator": "testPointQueryOnSkinnyTable -> deleteColumn -> queryColumns -> verifyQuery",
      "limit": "Selected-column coverage, not a general proof about every tombstone/query combination."
    },
    {
      "id": "lost-repair-reply",
      "status": "source-inspected",
      "statement": "Dropping repair replies causes a read timeout while a local assertion still finds the repaired row.",
      "source_ids": [
        "repair-tests"
      ],
      "locator": "readRepairTimeoutTest",
      "limit": "Does not demonstrate persistence across restart."
    },
    {
      "id": "purgeable-tombstones",
      "status": "source-inspected",
      "statement": "With zero grace and compaction on one node, an ALL range scan is expected to generate zero repair requests.",
      "source_ids": [
        "repair-tests"
      ],
      "locator": "testGCableTombstoneResurrectionOnRangeSliceQuery",
      "limit": "Test fixture, not recommended production configuration; not a data-resurrection experiment."
    }
  ],
  "integration": {
    "article": "https://hesela.com/analyses/replica-repair-coverage/",
    "term": "https://hesela.dev/terms/read-repair/",
    "existing_model": "https://hesela.dev/datasets/read-repair-traces/"
  },
  "limits": [
    "This records expected assertions in upstream source, not measured outcomes.",
    "The existing Hesela three-replica model is separate and unchanged.",
    "No claim about uninspected releases, cluster prevalence or failure probability.",
    "Source self-review only; no independent review claimed."
  ]
}
