Code RoomPartitioned lock holder keeps running
HardPrep Room Coding #2467

Partitioned lock holder keeps running

On-callNetworking & APIsConcurrencySenior–Staff~45 min

A singleton background worker (only one instance may run at a time — it processes a payout ledger) coordinates leadership via a distributed lock in etcd. At 03:30 a network partition isolates the current lock-holder node from the etcd quorum for ~20 seconds. Dashboards: during the window, etcd reports the lease as expired and a second worker instance acquires the lock and starts processing; meanwhile the original holder, still partitioned, also kept running because it never noticed it lost the lease. Afterward you find duplicate payout entries in the ledger. There were no code deploys. How do you triage and mitigate?

What a strong answer looks like

Stop the bleeding first (mitigate), then form hypotheses from real signals. Separate root cause from symptom, communicate status as you go, and close with what prevents a repeat.

0:00 of about 45 min
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.