Skip to content
Troubleshooting · SEV-2 · Senior · 14 min

Stale reads after a database failover

After a database changed its main server, some people save a change and then see the old value again. Nothing reports an error. Find out where the old data comes from and stop it being shown.

The page

listings-api · ap-southeast-1About half of reads return data up to 11 min old · sellers report edits 'not saving' · no errors · paged 08:52Error budget burn 7.5× · 66% of monthly budget left

Your brief

At 08:31 the listings database failed over from db-1 to a new primary, db-2. Since about 08:45 sellers say the edits they save do not stick: they load the page again and see the old price. Writes are succeeding and nothing is returning errors. Find out why reads are stale, stop users seeing old data, and say what has to change so it cannot recur.

First signal

$ for i in 1 2 3 4; do psql -h localhost -p 5433 -Atc "select price, updated_at from listings where id = 88231"; done
450.00|2026-11-07 08:49:10.418221+00
475.00|2026-11-07 08:12:44.090517+00
450.00|2026-11-07 08:49:10.418221+00
475.00|2026-11-07 08:12:44.090517+00
Open to everyone until Pro goes on sale · sign in to save your attemptRun the incident in the terminal
Open in the app