Cassandra repair mechanisms

Since data is partitioned and replicated onto multiple nodes, there is a possibility that replicas might be out of sync. This is usually due to slow responsiveness of certain nodes or nodes being down. If multiple nodes are out of sync, there is a possibility of reading stale data. There is also a certain case when deleted data reappears. To fix these issues, Cassandra provides three main repair mechanisms. These mechanisms ensure that the data is in sync most of the time. The repair mechanisms are as follows:

  • Hinted handoff
  • Read repair
  • Anti-entropy repair

Get Learning Apache Cassandra - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.