Home / Companies / Cockroach Labs / Blog / Post Details
Content Deep Dive

Trust, but verify: How CockroachDB checks replication

Blog post from Cockroach Labs

Post Details
Company
Date Published
Author
Vivek Menezes
Word Count
881
Company Posts That Month
5
Language
English
Hacker News Points
-
Post removed?
No
Summary

CockroachDB is designed to ensure data survivability through its distributed consistent key-value store and replication model, utilizing Raft consensus for replicated writes to guarantee data durability. Each write is synchronously replicated across multiple nodes, ensuring that if one node fails, others retain an exact copy of the data. To bolster confidence in this model, a subsystem periodically verifies the consistency of data across replicas, using SHA-512 checksums to identify replication discrepancies. Despite initial confidence in the system's reliability, verification processes uncovered bugs such as non-deterministic protocol buffer encodings, unauthorized replica updates, incorrect merging of time series data, and non-deterministic floating point additions, which were subsequently addressed. CockroachDB not only aims to provide a robust database system that withstands failures but also aspires to implement automatic online verification for additional features like indexes and foreign keys, ensuring trust through continuous validation.

Trends Found in this Post

No tracked trend matches for this post yet.

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.