Blog · 22 November 2026 · 1 min read

Three days of missing data and a report 41% too low

A partner feed went quiet, finance got a weekly report 41.4% under, and nobody noticed. Making late data recoverable with partitions, backfills and freshness checks.

Project: Late Data and Backfills · live dashboard


A partner's smart-meter feed went down for three days. The pipeline kept running, reported no errors, and finance received a weekly report 41.4% too low. This project is about making that situation visible and recoverable.

Step through the incident yourself in the interactive replay: watch the checks react, then run the backfill.

Why nothing failed

The pipeline loaded whatever files arrived. Missing files are not errors, so every run looked green. The problem was silence, and silence does not raise exceptions.

One day, one partition, one transaction

Each daily file is loaded as a single date partition inside one transaction. Rerunning a day replaces that partition instead of adding to it. That single rule makes it safe to load late data whenever it turns up.

Backfill only what changed

A backfill command rebuilds a date window and nothing else, then prints a before and after diff per day. You can see exactly which days moved and by how much before anyone reads the report.

Catch gaps in the middle

A simple freshness check asks "is the newest data recent?" That misses this incident: the newest day can be fine while three days in the middle are empty. The freshness check here also looks for gaps inside the timeline.

Replay the whole incident in CI

GitHub Actions replays the outage from start to finish, runs the backfill, and reconciles against the partner's own files. If a single kWh is off, the build fails.

What I would do differently

I would ship the gap check before the first dashboard. It is a few lines of SQL and it would have caught this on day one.

Code: GitHub

Portrait of Samwel Munyingi

Hi, I'm Samwel.

I'm a data engineer in Helsinki with a background in applied computer science. I build end-to-end pipelines on real open data, write about what breaks along the way, and teach data engineering for free.