Skip to content
All outages

Incident · Medium · Databases

Reads moved to a copy behind

  • SEV2
  • 06:55 UTC
  • TOKEN AUTH
90s

The situation

You are moving seven tables from one MySQL cluster to another in a different region, with an online migration tool that copies and replicates while the old cluster stays live. You have done several of these without trouble. Overnight, a scheduled cleanup job deletes about 59 million rows from one of the tables. At 06:55 you start moving reads to the new cluster; by 07:21 all reads are there. Integrations that authenticate with app tokens start getting 404s. No alert fires.

The evidence

Token-authenticated git requests answered 404 (%)illustrative
  • 404 rate
Logs and signalsReconstructed
04:44cleanup job: deleting expired installation records…
06:17cleanup job: done, ~59,000,000 rows deleted
06:40migration tool: replication delay to new cluster growing, up to an hour
06:55read cutover: started
07:21read cutover: 100% of reads on new cluster
07:30git (app token): 404 Not Found for repositories the app can access
08:01write cutover: complete

Your call

Why are valid app tokens getting 404s?

Charts and logs are reconstructions. Aim for 90 seconds; going over costs nothing.

Last reviewed: Official postmortem· linked after you answer