Anti-entropy repair
Anti-entropy repair compares replica state over a selected scope and synchronizes differences to reduce divergence.
Cassandra 5.0.0 compares common token ranges using Merkle trees and transfers differing data. Incremental repair skips data already marked repaired; full repair revisits the selected scope. [1]
Dynamo's SOSP 2007 design highlights a maintenance cost. Changing key-range boundaries required rebuilding Merkle trees. Its later fixed partitions decoupled boundaries from placement, allowing partition files to move as units. This historical design lesson concerns preparation cost, not a measured cost for current Cassandra. [3]
Agreement among current replicas does not certify a later archive import. If all deletion markers have been purged, the one-cell model's complete reconciliation propagates an imported old value rather than reconstructing the forgotten delete. One surviving marker protects the reconciled state, not necessarily the importing replica beforehand. This is not a Cassandra run; the example deliberately assumes ideal complete reconciliation. [4] [5] [6]
Relations
Limitations
- One completed job need not cover the whole cluster, and incremental repair is not a complete later-corruption check. [1]
Citations
- Apache Cassandra 5.0.0: Repair
- DeCandia et al. Dynamo: Amazon's Highly Available Key-value Store. SOSP 2007, sections 4.7 and 6.2.
- Apache Cassandra 5.0.0. Repair: current replica scope.
- Apache Cassandra 5.0.0. Cells: regular-cell timestamp reconciliation.
- Hesela: archive-import teaching model, source receipts and reproduction
Further reading
Sources & caveats
- 2026-11-03: source synthesis and fixed single-cell model for future-import scope; no native Cassandra experiment or independent peer review.