AI Briefing
KO

The Story of a CTO Who Bet His Career and Hacked a DB Down to the Bit Level

·2023.01.17 09:00

Key point

Devsisters overcame a 36-hour outage caused by a CockroachDB configuration error using bit-level data recovery techniques.

1 / 2

Details

During the early launch of Cookie Run: Kingdom, a configuration mistake during a CockroachDB storage expansion caused more than half of the nodes to go down. This triggered the Raft-based Consensus Algorithm, halting all SQL query processing to maintain data consistency, which led to a service-wide outage.

CockroachDB Enterprise technical support advised that recovering the current data was impossible to guarantee data consistency, and recommended restoring from the last backup. However, Devsisters identified that their service structure was based on Event Sourcing using Snapshot and Journal, and explored a way to extract rows directly from the raw data.

Noticing that CockroachDB's underlying storage layer was a Pebble-based Key-Value storage, the engineers began researching how to pull out data at the bit level.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.