Incident · Easy · Databases · Deployments
CASCADE meant everything
- SEV1
- 07:20 UTC
- PRODUCTION DATA
90s
The situation
Your issue tracker built two new tables for an unreleased feature and filled them with data copied from existing tables. The copy was faulty, so a reviewed migration empties the new tables and copies again. It finishes at 07:20 UTC. Thirty minutes later an engineer notices strange notifications; clients show sync-lag warnings as they try to update records that no longer exist. Issue descriptions, comments and notifications are gone from production, though reloading the app often still shows them.
The evidence
Logs and signalsReconstructed
04:47backup: full database backup complete07:01deploy: migration 'reset new tables and recopy' merged07:20migration: completed07:52client: sync lag: update to comment c_8f2… failed (entity not found)08:20db: comments 0 rows; notifications 0 rows; issue descriptions 0 rows
Your call
Why did emptying two new tables delete production data?
Charts and logs are reconstructions. Aim for 90 seconds; going over costs nothing.