Skip to content

Analyses / Replica convergence

Replica repair: what has actually converged?

Updated / Source review and exact set models

Reachable replicas are not necessarily synchronized replicas. The useful question is which data, on which replicas, a completed repair actually covered.

On this page23 sections

Three mechanisms, different coverage

A documentation comparison, not a measured repair benchmark.

MechanismWhat it reachesWhat remains unproved
Hinted handoffRetained missed mutationsCompleteness of historical data [2]
Read repairQueried data and participating replicasUnread data and other replicas [1]
Anti-entropy repairSelected shared rangesCoverage outside completed scope [3]

Cassandra hints are best effort. Draining a queue proves neither that every missed update had a hint nor that unrelated inconsistencies were repaired. [2] Its max_hint_window limits hint generation, with default-enabled persistent windows also considering the oldest retained hint for the destination; it is not a universal hint lifetime or a deadline for convergence. [6]

Corruption recovery needs protocol evidence

Replication does not automatically turn a local storage fault into a successful repair. Ganesan and colleagues tested eight historical distributed storage systems with CORDS, injecting one file-system fault into one node at a time. Some outcomes included data loss, unavailability and corruption spreading to intact replicas. This was controlled fault injection, not a fleet failure-rate estimate or a verdict on current releases. [37, sections 3-4]

In the FAST 2018 CTRL design, recovery identifies a log entry by epoch and index. The leader distinguishes an intact copy, a confirmed absence and a damaged copy. A timeout is not an absence vote. [36, section 3.4]

CTRL leader recovery: response meanings, not a general Raft repair recipe.

EvidenceMeaning
Intact matching entryCan repair the entry.
Confirmed absenceA cluster-majority absence certificate permits discarding this entry and its suffix.
Damaged copy or no responseDoes not establish absence.

Without sufficient evidence, recovery waits. If every copy of committed data is damaged, CTRL remains unavailable. Its evaluation concerns modified LogCabin and ZooKeeper, not arbitrary Byzantine behavior. [36, sections 3.1-3.4 and 5]

CORDS also showed why interpreting every checksum mismatch as an interrupted append is dangerous: crash recovery can discard previously acknowledged data. Its findings motivate testing both error returns and corrupted bytes, rather than assuming that detecting more faults automatically improves availability. [37, sections 4.2-4.3]

Hesela's review checklist: record the item identity, evidence from each participant, unavailable participants and the rule authorizing deletion. Keep an unresolved state distinct from a successful repair. This is an editorial synthesis, not a reproduced cluster experiment. See protocol-aware recovery and the ambiguous-tail example.

A current-state repair can leave an old snapshot unresolved

A repaired current value does not identify every earlier value. In the historical ZippyDB-DIRECT design, a corrupt block can hide versions needed by active snapshots. The modified system invalidates all local snapshots when it cannot establish which were affected; transactions using them abort and retry. This is a separate obligation from placing the patch in the update log. It describes the paper's recovery design, not an automatic guarantee of unmodified RocksDB. [43, section 4.2.5]

A logical replica need not retain the damaged replica's physical history. For the current range, DIRECT treats a key missing from a complete patch as deleted, including when the donor has already compacted its tombstone away. That establishes current absence, not absence at an earlier snapshot. [43, sections 4.2.3-4.2.4]

Constructed one-key histories, initially absent. Each step sets A, sets B or deletes the key; a snapshot reads after step 2. The repair supplies only the correct current state after step 4. "Absent" is a known state; "unresolved" means missing evidence.

History, steps 1 to 4Required at step 2Repaired at step 4Historical answer from current-only evidence
A / A / A / BABunresolved
B / B / B / BBBunresolved
A / absent / absent / BabsentBunresolved
A / A / A / absentAabsentunresolved
absent / absent / absent / absentabsentabsentunresolved

The first three histories expose the same current B but require A, B and absence, respectively, at step 2. No procedure receiving only that current observation can distinguish them. Substituting the latest value happens to work for the second row; it is still not evidence that the snapshot survived. The last two rows show the same ambiguity when the current key is absent.

The executable packet enumerates all 81 four-step histories. They contain 1,053 unordered pairs with the same current state; at each of the three earlier steps, 729 pairs require different answers. The 3,159 pair-and-step comparisons are exact finite cases, not failure probabilities. Independent replay, direct-index and counting checks reproduce the generated JSON. No database, storage fault or distributed recovery implementation was executed.

There is also a time-identity boundary. RocksDB's ordinary snapshot sequence numbers belong to their local instances; matching numbers do not identify a common distributed snapshot. Its timestamped-snapshot facility adds explicit coordination requirements, including acknowledged writes through the chosen timestamp. A snapshot is a volatile view, not a persistent backup. [44] The example uses shared logical positions solely to isolate historical-information loss; it does not map real replica sequence numbers.

An intact historical image with a verified mapping to the requested logical time can supply the missing evidence. The operational distinction is between repairing current state, preserving an active historical view and retrying against a new view. A retry is not completion of the original snapshot read. Review these separately when joining DIRECT recovery with multi-version concurrency control.

A surviving copy can still require a wider search

Replex partitions full copies by different index keys. Hybrid replexes hold complete rows, not coded fragments. The trade-off is where a degraded read must search. Its protocol also permits cross-index visibility lag before completion, and affected writes wait for recovery. [38, sections 2.2-3.1]

For two indexes A and B, equation 2 assigns a row to hybrid partition h = n2 * (a mod n1) + (b mod n2), with p = n1 * n2 partitions per copy. Here a and b are the two hash residues modulo p. [38, section 3.2]

Synthetic enumeration of all 144 residue pairs for p = 12. One A or B partition is unavailable; the entire hybrid layer remains accessible. Counts describe possible target partitions.

n1n2Targets after A failureTargets after B failure
112121
3443
4334
121112

Fixing A leaves n2 possible values for the second coordinate; fixing B leaves n1 possible first coordinates. Thus (1,p) reduces exactly to B placement, while (p,1) reduces to A. Section 3.2's extreme-case prose names A for (1,30), contrary to its equation. Section 5.3's failure discussion agrees with the equation. This is a source-text inconsistency, not evidence of a prototype defect. [38, sections 3.2 and 5.3]

A workload can populate fewer buckets than this all-residue construction. For example, residues (0,0), (0,4), (0,8) all map to one target under (3,4), although an A-only query without that extra knowledge still has four possible targets. Neither count predicts elapsed time, bytes scanned or physical-server load.

The enumerator, tests and generated JSON cover every factor pair for 4, 12 and 30 partitions. Tests independently construct row and column target sets for every factorization through p = 30, including asymmetric and extreme cases. This is a bounded placement calculation, not an implementation of recovery or a benchmark.

The paper's recovery-time and foreground-throughput measurements are distinct; fewer target partitions need not minimize rebuild duration. Its historical single-rack prototype also had different get and scan costs. [38, sections 5.2-5.3] For an operational review, record the failed index, accessible partitions and query predicates separately from the number of surviving copies.

What a hint acknowledgement actually confirms

For ordinary non-counter writes in Cassandra 5.0.0, ANY can succeed through a coordinator hint without a replica acknowledgement. ONE and QUORUM still require replica responses. The implementation counts a stored hint toward the response handler only at ANY; it rejects that consistency level for reads and counter writes. [7] [19] [20]

Therefore, a hint-only success does not establish that a subsequent read can retrieve the mutation. A hint records work for later delivery, not an additional queryable replica to insert into the R + W > N calculation. Historical Dynamo's fallback nodes instead temporarily hold data replicas under its healthy-node preference-list rules. These have different acknowledgement and placement rules despite the shared term hinted handoff. [2] [5, sections 4.5-4.6]

Admission, expiry and persistence also differ. max_hint_window controls creation. During replay, hint expiry separately uses the affected tables' recorded and current gc_grace_seconds, with a maximum hint TTL cap. The hint write path uses a buffer pool; periodic hint flushing explicitly does not trigger fsync. A hint acknowledgement alone is not evidence that an fsync completed. [6] [21] [22]

For incident review, record the requested consistency level, whether success came from a replica response or a hint, hint-generation eligibility, and completed replay or repair scope. Endpoint recovery and an empty hint queue cannot establish all of those facts. This checklist follows the documented contracts; it is not a measured cluster result.

Quorum counts need a common replica set

A read quorum and a write quorum specify sufficient participants, not agreement across every replica. Cassandra sends writes to all replicas; the consistency level controls the acknowledgements awaited. Its named QUORUM level requires a strict majority, while generic R and W thresholds need not each be majorities. [7]

For R distinct readers and W distinct write acknowledgers drawn from the same fixed N-replica set, quorum intersection follows when R + W > N. Gifford's weighted-voting work also needs version information and a transactional substrate; the count is not the whole protocol. [8]

Constructed set examples, not cluster measurements. Letters identify replicas; the read happens after the write response, before any additional transfer.

ScopeWrite acknowledgersRead respondersShared replicas
Fixed A/B/C; R=2, W=2A/BB/CB
Fixed A/B/C; R=1, W=2A/BCNone
Normal A/B/C; fallback D/E; R=2, W=2D/EA/BNone

Our set calculation gives a minimum overlap of max(0, R + W - N). Two arbitrary W-member write sets must intersect when 2W > N, but intersection does not itself serialize concurrent writes. The standalone Node.js check enumerates every nonempty read/write set for N=1 through N=8 and checks the fixed-set bound plus the fallback counterexample.

Historical Dynamo uses sloppy quorum: fallback nodes can temporarily hold writes. In the final row, nominal N=3 does not bound both participant sets; the actual union has four members. Counting 2+2>3 therefore proves nothing about their overlap. This is our illustrative construction, not a recorded Dynamo execution. [5]

Even with overlap, the protocol must reconcile versions and handle incomplete writes. Cassandra's separate Paxos-based lightweight transactions provide linearizable operations; an ordinary acknowledgement threshold is not that mechanism. [9] With read_repair='NONE', a partially applied unsuccessful write can be visible to one quorum read and absent from the next. [1] Nor does quorum completion prove full repair coverage or a particular persistence stage.

A smaller write quorum can make leader replacement harder

Flexible Paxos separates the quorum used to establish a leader (phase 1) from the quorum used to accept a proposal (phase 2). Its fixed-family rule requires every phase-1 quorum to intersect every phase-2 quorum, not every pair within either phase. For arbitrary subsets of sizes q1 and q2 from N acceptors, that means q1 + q2 > N. These phases are not ordinary application reads and writes. [23, sections 3-5]

Worked example: with N=5, q1=4 and q2=2, any four-member set intersects every two-member set. Two phase-2 sets can still be disjoint: A/B and C/D. If only A/B remain reachable, an already prepared, unpreempted leader has enough acceptors for phase 2; a replacement lacks the four needed for phase 1. Quorum availability depends on the phase and leader state.

Exact set calculations, not availability percentages. All reachable acceptors can communicate with a functioning proposer. Prepared means phase 1 already covers the relevant slots and no higher promise blocks the leader. A Yes denotes sufficient quorum counts, not guaranteed protocol completion.

N / q1 / q2ReachablePrepared leader?Existing leader: phase 2Fresh round: both phases
5 / 3 / 33YesYesYes
5 / 4 / 23YesYesNo
5 / 4 / 22YesYesNo
5 / 4 / 22NoNoNo
5 / 2 / 43YesNoNo
6 / 4 / 33YesYesNo

The reversed 2/4 configuration shows the other boundary: three reachable acceptors suffice for phase 1 but cannot form phase 2. The 6/4/3 row shows an even-sized system accepting with half its acceptors while requiring more than half to establish a fresh leader. These are conditional operating states, not a single "failures tolerated" number.

Restricted quorum families can use smaller sets in both phases. Arrange six acceptors in rows 0,1,2 and 3,4,5: phase 1 requires one complete row, phase 2 one complete column. Every allowed pair intersects once, even though 3 + 2 < 6. An arbitrary triple and pair do not have that guarantee. [23, section 4.3]

Constructed 2-by-3 grid: the same reachable count can preserve different phases. The phase-2 column assumes an already prepared, unpreempted leader; both columns show available quorum sets, not completed protocol operations.

Reachable IDsPhase 1: full rowPhase 2: full columnFresh round: both phases
0,1,2YesNoNo
0,1,3NoYesNo
0,1,3,4NoYesNo
0,1,2,3YesYesYes

Four reachable acceptors can leave either both phases possible or phase 1 unavailable. A single tolerated-failure count hides this placement dependence. Mapping logical rows and columns to shared failure domains therefore matters.

Three failure domains do not guarantee one-domain recovery

Result for this fixed grid: none of the 15 placements into three disjoint two-acceptor domains preserves both quorum families after every single-domain loss. This is our exhaustive finite derivation, not a measured cluster failure rate. The original paper motivates mapping grid participants across physical failure domains; it does not report these counts. [23, section 4.3]

All 15 placements of six labelled acceptors into three unlabelled pairs; each placement has three possible single-domain losses. Each loss leaves four acceptors. The 45 placement/loss cases are not independent incidents and not a probability distribution.

PlacementsBoth phases: lossesPhase 2: losses
60 of 33 of 3
92 of 33 of 3

Why no placement works for every loss: each logical row has three members. Pairing all six participants must put at least one physical domain across both rows. Losing that domain breaks both full-row phase-1 quorums. Two failed acceptors cannot touch all three disjoint columns, so a phase-2 quorum remains. Its use still needs a surviving prepared, unpreempted leader; quorum existence alone does not establish progress.

Domains 0,1, 2,3, 4,5 preserve both phases for two losses but not for loss of 2,3. Placing each column in a domain, 0,3, 1,4, 2,5, loses phase 1 after any domain loss. Physical domain names do not change those outcomes. In contrast, the unrestricted 6/4/3 quorum system has both quorum sizes available after every two-acceptor loss. That control uses larger quorums, not a measured performance improvement.

A failure domain is a placement input, not automatically a logical row or column. LogDevice's documentation explicitly represents physical location for placement; this calculation does not model its implementation. [26] Our operational inference is to test whole-domain loss separately for leader replacement and continued writes. It is not a claim that all six-node or three-domain systems share this limitation.

Inspect all placements and quorum witnesses, the placement model, exhaustive controls and JSON generator. Recursive pairing agrees with all 729 domain-label assignments and a separate 720-permutation Python check. The model excludes overlapping domains, network partitions, membership changes, repair and durable-state failures.

Minimal failure cuts expose the recovery boundary

A failed set blocks a quorum family precisely when it hits every permitted quorum. Naor and Wool's 1998 study defines this unavailability event. Their probability model assumes independent element failures; we borrow the event predicate, not that assumption. Their classical quorum systems are pairwise intersecting, unlike each separate phase family here. [27, section 2.2]

Our derivation for the same grid: an inclusion-minimal cut blocks its criterion but no proper subset does. This is not the same as a minimum-size cut. Phase 1 is blocked by one failure in each row: nine pairs. Phase 2 is blocked by one in each column: eight triples. A fresh round needs both families available, so loss of either is enough to block it. Six column-hitting triples already contain a cross-row pair; only the two whole-row triples add distinct minimal cuts.

  • Phase 1: 9 inclusion-minimal cuts; smallest cut 2; 49 of 64 failure subsets blocked.
  • Phase 2: 8 inclusion-minimal cuts; smallest cut 3; 27 of 64 failure subsets blocked.
  • Fresh round: both families: 11 inclusion-minimal cuts; smallest cut 2; 51 of 64 failure subsets blocked.

The fresh-round list has eleven minimal cuts, nine pairs and two triples. Checking only the smallest cuts misses the whole-row failures. The counts cover all 64 subsets, not 64 observed or equiprobable outages. Phase-1 and phase-2 failures overlap in 25 subsets: 49 + 27 - 25 = 51. Adding overlapping cut events would overcount failures.

For a physical domain, test whether its failed acceptors contain a relevant minimal cut; for several lost domains, test their union. These certificates reproduce all 45 existing domain-loss cases. The result concerns quorum availability, not data loss or a consensus safety violation. Phase-2 use still requires a surviving prepared, unpreempted leader and working protocol conditions; leader placement and retained state are separate questions. [24, sections 2.4-2.5]

Download the 64 subsets and minimal-cut certificates, cut calculation, cut tests and cut JSON generator. Bit-mask enumeration agrees with Cartesian-product and independent Python coordinate checks. These are finite set calculations, not a running consensus cluster or a new protocol theorem.

Paxos still needs ordered proposals, promises and selection of the highest accepted proposal returned by phase 1. Restarting acceptors must retain the required state before replying. Reducing a quorum does not replace those rules or prove that storage acknowledgements survived a crash. [24, sections 2.2 and 2.5]

The paper's prototype also changed message fan-out, sending to a quorum instead of every replica. Its emulated steady-state performance cannot isolate quorum size or predict a deployment's tail latency. [23, section 6] Meta's 2022 LogDevice account adds separate commit and reconfiguration mechanisms; their read behavior is implementation-specific. [25]

Inspect the dependency-free calculation and exhaustive tests. They check all 204 size configurations through N=8 and all reachable sets through N=6 for admitted configurations. This checks set geometry, not message histories, a consensus proof or the paper's benchmark. When evaluating a smaller quorum, test leader replacement separately from steady-state writes, including retained acceptor state and failure domains.

Partial quorums: a probability needs a sampling model

A partial quorum permits non-overlapping read and write sets. Bailis and colleagues' VLDB 2012 PBS model distinguishes version-count staleness from elapsed-time visibility. Its non-expanding model samples uniform replica subsets; missing the latest k writes has probability p^k only with independent write selections. Time-based estimates require a separate propagation and latency model. [10, equations 1-2; sections 3-4]

Our reproducible calculation: fix one key, N replicas, R distinct readers and W holders per completed write, with no further propagation or concurrent writes. There are C(N, R) possible read sets; C(N-W, R) avoid all W holders. Thus p = C(N-W, R) / C(N, R), taking the numerator as zero when R exceeds N-W. C denotes the binomial coefficient. The denominator counts possible sets, not observed requests.

Exact modeled probability of missing all k latest completed versions. The repeated case chooses one uniform write set and reuses it; read selection remains independent. Percentages are rounded to two decimals, not measured stale-read rates.

N / R / Wk versionsIndependent: fractionIndependent: probabilityRepeated set: probability
3 / 1 / 112/366.67%66.67%
3 / 1 / 124/944.44%66.67%
3 / 1 / 138/2729.63%66.67%
3 / 1 / 231/273.70%33.33%
5 / 2 / 229/1009.00%30.00%
3 / 2 / 210/10.00%0.00%

In our N=3, R=W=1 construction, three independent write placements give an 8/27 miss probability. Reusing the same writer leaves it at 2/3: two of the three possible one-replica reads still miss every recent version. More completed versions do not help that deliberately correlated case. This is a counterexample to dropping the independence assumption, not a measurement of routing bias in Cassandra.

The provenance JSON records all six rows, assumptions and the code hash. The dependency-free evaluator generates this table; its exhaustive tests check 204 single-write configurations and ordered multi-write histories for N up to four. These exact finite counts need no sampling confidence interval; uncertainty about whether the assumptions describe a real deployment remains unquantified.

Our operational conclusion: report responder identities and version observations before presenting a freshness percentage. Neither this table nor a zero miss probability under strict overlap establishes a millisecond deadline, crash durability or a complete linearizability proof. A partition or a different placement policy changes the model.

The same average version count can hide different miss risks

Average probabilities over observations, not exponents. PBS k-staleness concerns a version window; PBS t-visibility concerns elapsed time. The 2014 treatment distinguishes regular from atomic semantics, so a freshness probability is not automatically a probability of linearizability. [31, sections 2.2-2.3]

Our deduction from the non-expanding model above: let K be the positive number of most recent completed versions acceptable to an observation. Select K independently of replica placement. Conditional on K=k, the miss probability is p^k. Across observations it is E[p^K] = sum P(K=k) p^k, not generally p^E[K]. This is the law of total probability applied to our explicit mixture, not a new distributed-storage guarantee.

Constructed observations with N=3, R=W=1 and p=2/3. Every row has mean K=3. Weights describe probability mass, not a measured request sample. Percentages are rounded to two decimals.

Acceptable version count KExact miss probabilityMiss probabilityUsing only mean K
Always 38/2729.63%29.63%
Half 2, half 426/8132.10%29.63%
Half 1, half 597/24339.92%29.63%

Half of the observations allowing one version and half allowing five give (2/3 + (2/3)^5)/2 = 97/243, or 39.92%. Always allowing three gives 8/27, or 29.63%. The difference is 25/243, about 10.29 percentage points, despite identical mean K. For 0 < p < 1, the function p^K is convex: Jensen's inequality gives E[p^K] >= p^E[K]. The mean substitution is optimistic for this fixed-p model.

PBS relates version counts to write/read rates in its monotonic-read discussion. That motivates checking what an aggregate rate represents; it does not make a mean count sufficient for arbitrary bursty observations. [10, section 3.2] A read that already observed a version can also condition replica placement. Our table does not model that session history, nor does it establish a millisecond visibility deadline. If K and placements are dependent, even the conditional p^k premise must be checked.

Keep per-key version-count distributions and responder identities when evaluating a freshness target. If those observations are unavailable, report the model assumptions instead of turning an average rate into a guarantee. The generated evidence includes exact fractions, assumptions and source hashes. The calculation and tests use exact integer arithmetic and independently enumerate small replica sets. No cluster was run; exact finite counts need no sampling interval, while deployment-model uncertainty remains unquantified.

Fitted latency is not an observed freshness guarantee

PBS's production inputs were round-trip summaries, not complete one-way delays. The authors fitted distributions with independence and symmetry assumptions, then simulated freshness. For N=3 and R=W=1, Table 4's LNKD-DISK and LNKD-SSD values of 45.5 ms and 1.85 ms are model estimates, not a measured before/after deployment experiment. [10, sections 5.1-5.6]

Its YMMR comparison adds separate read and write 99.9th percentiles: 32.60 + 10.73 = 43.33 ms for R=2/W=1, versus 219.27 + 10.79 = 230.06 ms for R=3/W=1. This is not an end-to-end 99.9th percentile. [10, Table 4]

A constructed counterexample makes that distinction concrete. Take 1,000 paired read/write observations. Each marginal has 999 zeroes and one 100 ms value. Using nearest-rank p99.9, both marginal percentiles are zero. Put the two slow events in different pairs: the paired-sum p99.9 is 100 ms. Put them in the same pair: it is zero. Identical marginal distributions do not determine the paired tail. These are teaching values, not storage measurements.

Ali's later analysis derives closed forms under IID exponential read/write delays and instantaneous acknowledgements. It explicitly retains dependence between stale-response events; multiplying their marginal probabilities is not justified. Those assumptions differ from PBS's fitted four-leg model, so the formula is not a drop-in empirical freshness guarantee. [18, sections II-IV]

For an operational estimate, retain responder identities, read/write timing and the fitting assumptions. For a combined latency percentile, measure paired totals or specify their joint model. Neither an acknowledgement threshold nor a fitted freshness curve proves crash durability.

Reconciliation is not always a repair write

When read repair is triggered, Cassandra 5.0.0's default BLOCKING setting waits for enough repair acknowledgements to meet the consistency level. NONE still reconciles responses but does not write repairs. [1]

BLOCKING supports monotonic quorum reads. However, a narrow SELECT can repair only part of a broader partition write, breaking partition-level write atomicity. NONE avoids that repair-induced effect but does not provide monotonic quorum reads. Neither setting is a general transaction guarantee. [1]

ALL counts replicas, not repaired columns

The upstream Cassandra 5.0.0 point-query test starts with one replica holding (k,a,b)=(1,2,3) and the other empty. After selecting only a, its BLOCKING expectation for the second replica is (1,2,null). The helper performs this distributed read at ALL, then inspects each replica locally before a wider read. All replicas participated; column b was still outside the repair. [14, point-query test] [15, query helpers] [16, execution helper]

The same test then deletes a on the first replica. Its next narrow read expects that reading b does not propagate the deletion of a. A later all-column query does. A successful read of a different column is therefore not a deletion-delivery receipt. [14]

This is source inspection, not a fresh cluster run. The test setup deliberately writes one replica through an internal API; it is not a captured failed client batch. Its BLOCKING cases vary coordinator, flush and paging; NONE has one baseline configuration, not the same full cross-product. [15, data] [16, mutate]

A timeout does not roll back a repair

Another upstream test drops repair replies. An ALL read times out, yet a local check finds the repaired row on its recipient. Lost acknowledgement and absent mutation are different outcomes; this test does not establish crash durability. [17, timeout test]

A later reply is not a stale-read verdict

PBS distinguishes a mismatch from proof that the returned version was stale. A newer late reply can reflect a write still in flight or one committed after the read began. The paper's asynchronous detector can therefore produce false positives; replica version timestamps alone do not establish the system-wide commit order needed to remove that ambiguity. [10, section 4.3]

Our monitoring inference: preserve the returned version, late replies and known write-completion context separately. Do not count every mismatch as a confirmed stale read. This concerns the paper's detection model, not a claim that Cassandra 5.0.0 implements that detector.

The source record maps these claims to an immutable commit, file hashes and method locations. Its Python verifier rechecks source bytes, not database behavior. Existing simulated traces remain separate. Operationally, record query projection and completion status alongside replica coverage.

A small counterexample you can reproduce

Consider two rows, x and y, in one partition. An unsuccessful quorum write leaves A at (1,1) and B/C at (0,0). In our constructed model, reading x from A/B with blocking repair makes B=(1,0). A subsequent x/y read from B/C then returns (1,0). With response-only reconciliation, the second read instead returns (0,0).

The three state traces, CSV and executable model expose the assumptions and include a both-rows control. This illustrates the documented tradeoff [1]; it is not a Cassandra execution or a frequency estimate.

A completed job needs a coverage record

Cassandra compares shared token ranges with Merkle trees and transfers differences. Full repair revisits all data in the selected range; incremental repair excludes data already marked repaired, so later corruption can escape that pass. A single node's repair is not a whole-cluster audit. [3]

A preview is not a repair: --preview estimates streaming, while --validate compares already-repaired data. Neither streams corrections. A successful diagnostic must not be recorded as completed data repair. [3]

Hesela's operational inference: retain the software version, keyspaces, tables, ranges, participants, repair mode, exclusions, completion state and failures. Check the completed coverage, not merely the time a scheduler started a job.

Deletion markers make missed coverage consequential

A replica that misses a deletion can retain an older value. If other replicas later purge the tombstone, that value can spread again. Expiry of gc_grace_seconds only permits removal; compaction and overlapping-data conditions still matter. [4]

Our inference: evaluate completed repair coverage and outage history against the configured deletion-protection window. A running job or a healthy status screen does not establish that every relevant replica received the marker.

A separate upstream range-query test uses gc_grace_seconds=0, compacts tombstones away on only one node, then expects an ALL scan to trigger zero repair requests. This is a test fixture, not a recommended production setting. Matching query results need not mean matching physical history: they are not identical stored deletion metadata. [17, purgeable-tombstone test]

Set reconciliation: find differences, then resolve them

An invertible Bloom lookup table (IBLT) can list differences from compact summaries. Goodrich and Mitzenmacher describe database reconciliation using record identifiers and checksums. Its listing can be incomplete; an undecoded remainder is not evidence of equality. [11]

Rateless IBLT streams more compatible coded symbols until decoding succeeds, avoiding an advance difference-size estimate. Encoding still depends on the input-set size. The SIGCOMM 2024 Ethereum experiment used historical snapshots and Geth v1.13.10; it was not a Cassandra repair benchmark. [12, sections 4 and 7]

The ESA 2024 stacked-IBLT work separately trades memory, randomness and decoding cost. There is no single universal performance bound shared by every structure called IBLT. [13]

Our exact counterexample: A stores account-7="old"; B stores account-7="new". Comparing only keys returns no difference. Comparing key/value tuples returns one A-only and one B-only item. The labels "old" and "new" are illustrative values, not trusted version metadata.

Constructed one-record snapshots, not measured traffic or an IBLT simulation. Difference size counts set items, not bytes or divergent database keys.

Item encodingOnly in AOnly in BDifference size
Key onlyNoneNone0
Key and value["account-7","old"]["account-7","new"]2

The dependency-free example generates these rows; tests cover empty inputs, ordering, invalid records and every pair of nine small snapshots. It does not implement IBLT, estimate decoding failure or reproduce a paper's benchmark.

Our deployment inference: specify the snapshot scope and record encoding, preserve deletion/version semantics, and keep conflict resolution separate from difference discovery. A complete difference list does not identify which replica is authoritative or prove that the resulting writes reached durable storage. See the set-reconciliation definition.

When a compact difference list gets stuck

In a signed IBLT difference, a count is a balance of additions and removals. The paper's fault-tolerant construction checks candidate keys with an additional checksum; counts alone are insufficient. Peeling removes a verified item from its cells and repeats. An undecoded remainder must retain an incomplete status. [11, sections 2.4 and 3]

Our small executable sketch uses nine cells in three partitions, with three explicitly assigned positions per integer item. Each cell stores a signed count, an exact integer item sum and a checksum sum. Items are complete set identities, not database keys with separate values. Positions are chosen to expose edge cases, not sampled to estimate failure rates.

Put A-only item 1 and B-only item 2 in the same three cells: each count is zero, but each item sum is -1. Now put A-only items 1 and 5 and B-only item 2 together. Each count is one and its item sum is 4, even though neither set contains item 4. The checksum rejects that apparent singleton. These are arithmetic consequences of our chosen placements, not observed storage incidents.

Five constructed cases; all use nine cells. Recovered items retain their A-only or B-only sign. The last column counts residual cells with any nonzero field.

CaseRecovered A-only / B-onlyComplete?Residual cells
Equal setsNone / NoneYes0
Zero counts, unequal setsNone / NoneNo3
Count-one impostorNone / NoneNo3
Same items, spread placement1, 5 / 2Yes0
One item recovered, remainder stuck5 / NoneNo3

The last three cases contain the same difference: A-only 1 and 5, B-only 2. Spreading their positions permits full recovery. Separating only item 5 recovers it, but leaves 1 and 2 stuck. Therefore neither an empty output list nor a useful partial list is a completion signal. Our operational recommendation is to preserve the decode status and retry or fall back before marking reconciliation complete.

These placements are separate encodings, not extra cells appended to an old sketch. Both peers need matching parameters and mappings. Enlarging a regular IBLT generally requires re-encoding; the rateless construction uses compatible prefixes to avoid that restart. Do not assume a fixed-size sketch acquires that property by extension. [12, sections 3-4]

Inspect the placements, cell states and removal trace, model, tests and generator. Run node --test iblt-peeling.test.mjs, then node generate-iblt-peeling.mjs in one directory. Tests compare 768 finite set-pair cases with an independent set-difference oracle. Exact BigInt sums avoid fixed-word overflow; SHA-256 checks do not constitute a security proof. This teaching sketch omits values, duplicate multiplicities and randomized placement. It is neither a production implementation nor a reproduction of the paper's simulation results.

Agreement does not choose the correct history

Dynamo's 2007 design uses temporary hinted replicas and per-range trees to reduce divergence. It separately handles causal version reconciliation and application resolution of concurrent versions. Its opportunistic read repair can follow the client response, unlike Cassandra's blocking mode. This is historical Dynamo, not a claim about today's DynamoDB. [5]

Hesela's synthesis: convergence, authority and durability are separate questions. Hashes locate disagreement; they do not decide application intent. Agreement cannot recreate information absent from every surviving copy.

Continue with replication acknowledgement stages, consistency and ordering, hash and identity limits and local deletion persistence.

Same server, concurrent versions

A higher server counter does not prove that a client saw an earlier write. A version vector compresses contiguous event prefixes; a dotted version vector keeps the new event separate from its causal past. This preserves gaps created when different clients update from the same old context. [32]

Constructed single-key history, not a Riak trace: two clients read the prefix a1 through a6. One server allocates a7 and a8 to their separate updates. Neither client has observed the other's update.

WriteClient pastNew dotRepresented events
First clienta:6a7a1, a2, a3, a4, a5, a6, a7
Second client, same read contexta:6a8a1, a2, a3, a4, a5, a6, a8
Read both, then resolvea:8a9a1, a2, a3, a4, a5, a6, a7, a8, a9

The first two sets are incomparable: one contains a7 but not a8; the other contains a8 but not a7. Replacing the second history with the prefix a1 through a8 invents observation of a7 and incorrectly makes it dominate the first. Only the third row follows a read of both versions.

These sets are generated from the finite example module; its Node tests check explicit event lists, concurrency, resolution and the gap-filling negative control. The model does not implement replication, crash recovery, actor allocation or application conflict resolution.

A fast comparison has a precondition

The separately identified 2012 author manuscript derives a constant-time comparison: if the first version's dot is in the second's past, its past must also be included. That implication relies on valid causal histories. Arbitrary imported metadata can contain a dot while omitting its dependencies; the example tests include such an invalid-history control. This is an implementation caution, not a reported flaw in Riak. [33, section IV-B]

Acknowledgement context can cover too much

DVVSet is a related multi-value representation. The authors distinguish its DVVSetAck variant: a returned write context can preserve gaps instead of covering every sibling already held by the server. Reusing a whole-server context could otherwise supersede values the client never read. This is a documented variant, not a claim that all Riak APIs provide it. [35]

Riak KV 2.0.4 binds values to generating updates to avoid false sibling duplication and treats client context as opaque. Genuine concurrent values still need a resolution policy. [34] Per-key version tracking does not by itself establish the cross-key dependency visibility discussed below.

A reset counter can hide a new update

Distinct updates need distinct event identifiers. The DVV paper builds them from an actor and a monotonic counter; clock comparison cannot repair a collision in that identity. [32, section 3]

Brown's historical Riak account describes local history loss after deletion or a failed read, followed by reused counters. A retained tombstone could then suppress a new value. Per-key actor epochs distinguish the new identity, but do not automatically make it causally newer. [45]

Constructed one-key examples; relation compares incoming metadata to retained metadata.
CaseRetainedIncomingRelation
Reused actor, reset countera=2a=1before
Reused actor and countera=1a=1equal
Fresh actor, no old contexta:old=2a:new=1concurrent
Fresh actor with observed contexta:old=2a:old=2, a:new=1after

The first two rows deliberately violate event uniqueness. The third preserves both identities as concurrent; only the fourth includes the observed old context. The compareVectors helper and tests in the example module check metadata ordering, not actor allocation, tombstone reclamation or a deployed recovery protocol. A durable allocator and a conflict-resolution policy remain separate obligations.

Choose a merge rule that preserves the intended updates

A conflict-free replicated data type (CRDT) specifies how concurrent updates combine. Strong eventual consistency requires equivalent states after the same updates have taken effect, with eventual delivery and terminating operations. It does not require every read to return the latest remote update. [39, section 2.2]

Consider two replicas that each increment a zero counter once. The table adapts Shapiro and colleagues' grow-only counter illustration. [40, section 3.1.2]

Two independent increments; the second replica's unchanged state is then delivered again.

Merge ruleFirst mergeAfter replay
Maximum of scalar totals11
Sum of scalar totals23
Componentwise maximum, then sum22

Scalar maximum converges to 1 but loses an independent increment. Scalar sum reaches 2, then double-counts a replay. The G-counter keeps states [1,0] and [0,1]; componentwise maximum yields [1,1], whose sum is 2. It assumes distinct fixed replica identities, each updating only its own component, without counter overflow. Resetting and reusing an identity violates that construction. [40]

State-based convergence combines inflationary updates with a least-upper-bound merge. The original operation-based model instead requires reliable, causal, exactly-once effect delivery and commuting concurrent operations. Duplicate-state tolerance must not be generalized to arbitrary operation messages. [39, sections 2.3-2.4]

Client retries are a separate boundary. Re-delivering state [1,0] preserves a value of 1. Executing a second client increment at that replica produces [2,0]; executing it at the other replica instead produces [0,1], which also merges to a total of 2. These are consequences of the example's update rule, not an Akka runtime test. Akka documents that UpdateTimeout does not mean rollback. A retry policy must establish whether it is replaying state or executing another update. [41, Update]

Persistence remains separate. Akka's Distributed Data documentation, displaying version 2.11.0 when reviewed, describes in-memory storage by default and an explicit durable-storage configuration. Its delta delivery requirements also vary by type. [41] Likewise, convergence alone does not enforce an inventory bound: a bounded counter allocates update rights, which can restrict local operations during a partition. [42, sections II-IV]

The example module, tests and reproduction notes check finite arithmetic, including an independent union of actor-event identities. They do not implement networking, recovery or durable acknowledgements.

Repair cannot undo an already observed causal violation

Repair can make replicas agree after they have already exposed a causally invalid read. Causal consistency constrains what clients may observe along the way; it is not a synonym for eventual convergence.

In COPS (SOSP 2011), a remote write remains pending until its dependencies have been satisfied in the receiving cluster. This is a dependency-visibility check, separate from finding differences between replicas. [29, section 4.4]

Dependency tracking need not copy the entire causal past. COPS records key/version pairs and checks the nearest dependencies; transitivity covers their predecessors. After a put, the client replaces its context with that put, which carries the earlier dependencies. COPS-GT retains more information for its multi-key get transactions. This is a design distinction, not a measured speedup here. [29, section 4.3 and Figure 6]

The order of the reads changes the answer

Start with x=0 and y=0. One writer completes x=1 and then y=1 in the same execution thread. There are no other writes. A reader in one tracked causal context reads y=1 and then x. Returning x=0 is forbidden: the read of y transfers the dependency on x=1. Reading x=0 first and y=1 second can be legal instead; separate reads need not describe one common snapshot. This is a constructed register example, not a recorded database trace.

The formal requirement is a legal view for each process, not a rule that clients must fetch every causal predecessor. An overwritten value need not ever be read. Concurrent operations may have different orders in different observers' views. [28, sections 1 and 4]

Check visibility, conflict handling and persistence separately

Do not infer a multi-key transaction or durable acknowledgement from the label. Causal+ adds convergent conflict handling; COPS-GT separately adds consistent get transactions. [29, sections 3.1 and 4.6] MongoDB documents a causal-session configuration allowing rollback, illustrating why persistence needs its own settings. [30]

Hesela's operational inference: for a replica-repair review, record dependency context, the point at which incoming versions become visible, conflict handling and the read API's scope. Repair completion by itself does not establish these guarantees. External communication also matters: COPS models thread communication through the store, so an out-of-band message must not silently be assumed to carry the store's dependency context. [29, section 3]

Related definitions: session guarantees, eventual consistency and read-atomic isolation.

Sources and limitations

This is a primary-source synthesis. No Cassandra cluster was run, no data was repaired and no repair latency or loss probability was measured. Implementation statements are pinned to the Apache Cassandra 5.0.0 source tag, not generalized to later releases. The comparison, set examples and operational checklist are editorial interpretations. The set check proves only its bounded combinatorial cases, not the correctness of a distributed implementation.

  1. Apache Cassandra 5.0.0: Read repair
  2. Apache Cassandra 5.0.0: Hints
  3. Apache Cassandra 5.0.0: Repair
  4. Apache Cassandra 5.0.0: Tombstones
  5. DeCandia et al. Dynamo: Amazon's Highly Available Key-value Store. SOSP 2007, sections 4.4, 4.6-4.7 and 5.
  6. Apache Cassandra 5.0.0: max_hint_window configuration
  7. Apache Cassandra 5.0.0: Dynamo architecture, tunable consistency and data versioning.
  8. David K. Gifford. Weighted Voting for Replicated Data, SOSP 1979, sections 1 and 3.
  9. Apache Cassandra 5.0.0: Guarantees, including lightweight transactions.
  10. Bailis et al. Probabilistically Bounded Staleness for Practical Partial Quorums. PVLDB 5(8), 776-787 (2012), equations 1-2 and sections 3-6.
  11. Michael T. Goodrich and Michael Mitzenmacher. Invertible Bloom Lookup Tables. arXiv:1101.2245v3 (2015 revision; first submitted 2011), sections 1.3, 2.4, 3 and 5.
  12. Lei Yang, Yossi Gilad and Mohammad Alizadeh. Practical Rateless Set Reconciliation. SIGCOMM 2024, sections 3-4 and 7.2-7.3. DOI: 10.1145/3651890.3672219.
  13. Nils Fleischhacker, Kasper Green Larsen, Maciej Obremski and Mark Simkin. Invertible Bloom Lookup Tables with Less Memory and Randomness. ESA 2024. DOI: 10.4230/LIPIcs.ESA.2024.54.
  14. Apache Cassandra 5.0.0: ReadRepairPointQueriesTest.java
  15. Apache Cassandra 5.0.0: ReadRepairQueryTester.java
  16. Apache Cassandra 5.0.0: ReadRepairTester.java
  17. Apache Cassandra 5.0.0: ReadRepairTest.java
  18. Ramy E. Ali. Consistency Analysis of Replication-Based Probabilistic Key-Value Stores. arXiv:2002.06098v4 (2021), sections II-IV. DOI: 10.48550/arXiv.2002.06098.
  19. Apache Cassandra 5.0.0: StorageProxy.java, submitHint and shouldHint
  20. Apache Cassandra 5.0.0: ConsistencyLevel.java, read and counter-write validation
  21. Apache Cassandra 5.0.0: Hint.java, ttl and expirationInMillis
  22. Apache Cassandra 5.0.0: HintsService.java, buffered write and flushAndFsyncBlockingly
  23. Heidi Howard, Dahlia Malkhi and Alexander Spiegelman. Flexible Paxos: Quorum Intersection Revisited. OPODIS 2016, LIPIcs 70 (published 2017), sections 3-7. DOI: 10.4230/LIPIcs.OPODIS.2016.25.
  24. Leslie Lamport. Paxos Made Simple (2001), sections 2-3.
  25. Meta Engineering. Augmenting Flexible Paxos in LogDevice to improve read availability (7 March 2022).
  26. LogDevice cluster configuration: Location and physical failure-domain hierarchy.
  27. Naor and Wool. The Load, Capacity, and Availability of Quorum Systems. SIAM J. Comput. 27(2), 1998, section 2.2.
  28. Ahamad et al. Causal memory: definitions, implementation, and programming. Distributed Computing 9, 37-49 (1995), sections 1, 2 and 4.
  29. Lloyd et al. Don't Settle for Eventual: Scalable Causal Consistency for Wide-Area Storage with COPS. SOSP 2011, sections 3, 4.3, 4.4 and 4.6.
  30. MongoDB Manual: Causal Consistency and Read and Write Concerns; durability and rollback.
  31. Bailis et al. Quantifying eventual consistency with PBS. The VLDB Journal 23, 279-302 (2014), sections 2.2-2.3 and 4.1-4.2. DOI: 10.1007/s00778-013-0330-1.
  32. Preguica et al. Dotted Version Vectors: Logical Clocks for Optimistic Replication (2010), sections 3-5.
  33. Preguica et al. Dotted Version Vectors: Efficient Causality Tracking for Distributed Key-Value Stores. Author-hosted manuscript (2012), sections IV-A/B and V.
  34. Riak KV 2.0.4: Causal Context, DVVs Versus Vector Clocks and Usage.
  35. Ricardo Goncalves: Dotted Version Vector Sets, pinned author notes, including acknowledgement variants.
  36. Alagappan et al. Protocol-Aware Recovery for Consensus-Based Storage. FAST 2018, sections 3-5.
  37. Ganesan et al. Redundancy Does Not Imply Fault Tolerance. FAST 2017, sections 3-4.
  38. Tai et al. Replex: A Scalable, Highly Available Multi-Index Data Store. USENIX ATC 2016, pp. 337-350; sections 2.2-3.2 and 5.2-5.3.
  39. Shapiro et al. Conflict-free Replicated Data Types. SSS 2011, sections 2.2-2.4.
  40. Shapiro et al. A comprehensive study of Convergent and Commutative Replicated Data Types. RR7506 (2011), section 3.1.2.
  41. Akka 2.11.0 documentation: Distributed Data, Durable Storage and Delta CRDTs (version displayed at access).
  42. Balegas et al. Extending Eventually Consistent Cloud Databases for Enforcing Numeric Invariants (2015), sections II-IV.
  43. Tai et al. Who's Afraid of Uncorrectable Bit Errors? Online Recovery of Flash Errors with Distributed Redundancy. USENIX ATC 2019, sections 4.2.3-4.2.5.
  44. RocksDB documentation: Snapshot, local sequence numbers and timestamped snapshots (page edited 24 June 2022).
  45. Russell Brown: Per-Key Actor Epochs In Riak (2015)

Cassandra sources reviewed 13 October 2026; PBS model reviewed 14 October 2026; set-reconciliation papers reviewed 16 October 2026; signed IBLT decoding revisited 20 October 2026; pinned Cassandra test sources inspected 26 October 2026.

Published by Hesela team · Published · Updated

Report a correction · Editorial standards · Reuse guidance

Change history

: first published.

: latest recorded update. A detailed change note is not available for this revision.

New-publication RSS · Correction RSS

Cite this page
Hesela team. Replica repair: what has actually converged?. Hesela. 2026-11-28. https://hesela.com/analyses/replica-repair-coverage/