Home / Companies / DataStax / Blog / Post Details
Content Deep Dive

More Efficient Repairs in 2.1

Blog post from DataStax

Post Details
Company
Date Published
Author
Lyuben Todorov
Word Count
612
Company Posts That Month
6
Language
English
Hacker News Points
-
Post removed?
No
Summary

Repairs are crucial for maintaining data consistency in a Cassandra cluster, especially when frequently deleting data. The nodetool repair command initiates the repair process on a specific node by computing a Merkle tree for each range of data on that node. Incremental repairs have been introduced in Cassandra 2.1 to persist already repaired data and only calculate merkle trees for sstables that haven't previously undergone repairs, making the repair process more efficient as datasets grow. The incremental repair process involves sending a prepare message, building merkle trees from unrepaired sstables, comparing trees, issuing streaming requests, and finally an anticompaction command to segregate repaired and unrepaired ranges into separate sstables. Full repairs remain the default, but incremental repairs can be opted into via the -inc option to nodetool repair.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 1 28 10 7 -
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.