Cases1 case
1 to 1 of 1
IL-0281PostHog's Logs ClickHouse cluster silently deleted almost all its S3 data, losing US logs older than 3 daysPostHog2026- Symptoms
On 19 February 2026, a node of the ClickHouse cluster behind PostHog's Logs product crashed, restarted and could not start again because it could not find a large amount of its data. Engineers then found that almost all of the Logs data stored on S3 was gone, so logs collected in the US region more than 3 days earlier were lost. Only the Logs product was affected.
- Trigger
At 10:54 UTC a routine mutation was run to materialise an index. When it finished at 11:02, it set off a bug in ClickHouse's zero-copy replication.
- Root cause
- Component
- Contributing factor
- Detection
No automated alarm fired. At 19:40 UTC a node in the cluster crashed, restarted and failed to start because of the missing data, and the engineers who investigated found that most of the S3-backed data was gone.
- Remediation
- Switched Logs to a new table without zero-copy replication and caught up on recent messages
- Backfilled the Logs data from the 3 days of Kafka history
- Action items
- Disable zero-copy replication on all clusters
- Audit the whole Logs ClickHouse configuration and keep experimental features out of production
- Enable S3 versioning on the storage buckets so objects deleted by a database bug can be recovered
- Spot-check configurations and data integrity strategies for single points of failure before a product becomes generally available
- Lessons
Running Logs in its own cluster kept every other product unaffected, and 3 days of Kafka retention saved the recent data. An experimental setting chosen for an early internal stage was allowed to stay in production. Monitoring covered only incoming and recent data, so petabytes were deleted over 8 hours without an alarm. Relying on database replication alone over shared storage was a single point of failure, and S3 versioning would have let the deleted files be recovered.
This case involves Database and Database backups and snapshots. kubegap audits a Kubernetes cluster for gaps like these, read-only, from Claude Code or Codex; its checks cite public reports like the ones in this library.
By root cause1
Software defect1 case
- Contributing factor
- Organisation