38,412 Orders Corrupted by a Correction Script: 5 Defense Layers and 7 Traps in Production Data Repair
Overview It was 0:47 a.m. and a reconciliation alert woke me up on the living room couch. Not the “some box is burning CPU” kind of alert — this was a number out of the payment reconciliation job: 37,904 orders whose status disagreed with their payment records for the day. Two hours later we knew the whole story. At 22:10 someone ran a “status correction” script. The script had passed review....