Quality · medium · ~13 min
A pricing-logic fix required recomputing 90 days of order_margin history. The engineer ran the backfill Friday evening — writing directly into the production table — and signed off when the job succeeded.
order_margin
The job did succeed. It also carried a join bug that duplicated rows for orders with multiple discounts. For six hours on Saturday, finance dashboards and two ML training jobs read margins inflated by the duplicates — until an analyst noticed margin > 100% on a big account.
Remediate today's mess, then redesign backfills so this class of failure can't recur.