All practice problems Bug of the Day: a new problem every midnight, free for everyone. Keep a streak with your friends.
DevOps Engineering · Production incident · Hard
Production incident practice: Midnight Migration
Zero orders in twelve minutes. The database says it's fine. Checkout writes hang until they time out, but the database is barely using any CPU. Something…
The problem
- CRITICAL · checkout · writes timing out — 0 orders in 12 minutes
- Checkout writes hang until they time out, but the database is barely using any CPU. Something is blocking writes without doing much work. Find the blocker and unblock checkout.
You'll use: Linux shell · kubectl · curl · Logs & metrics · Rollbacks
Solve it (expert level)2–4 min · Type commands (or tap them)
Show a hint
The database is idle but writes hang — that smells like a lock. Try db locks.
What this teaches (spoiler)
Schema changes take locks. On a big, hot table, set a lock timeout, change things in small steps (add a nullable column, backfill in batches), and watch for blocked queries while it runs.