Nguyen Le Phong

Breaking Production for the First Time

Your first production incident feels personal.

The pipeline is green. You merged the PR after lunch, the deploy finished ten minutes ago, and you've already opened the next ticket. Then a message lands in the team channel: "Is checkout slow for anyone else?" A minute later, a screenshot. Then someone from support asks whether anything went out today. Something did. Yours.

Stay in this job long enough and you'll probably have an afternoon like that. This post is for the first time it happens to you: what to do in the first hour, what to do the day after, and what the whole thing can teach a team when it's handled well.

An engineer works at a dual-monitor desk next to a half-finished water bottle, minutes before an ordinary release turns into an incident.
Most first incidents start on an ordinary afternoon. The pipeline is green and the room looks normal until the messages start coming in.

It's usually a small change

First incidents are rarely dramatic. They tend to look like this: a field that's optional in the new code is still required by an older consumer. A migration works on test data and trips over a five-year-old row. A config default changes and one region reads it differently. The diff was small, the review was reasonable and the tests passed, because the tests only knew about the cases someone thought to write.

That's worth saying early, because the first feeling is usually "how did I miss something so obvious?" It rarely looked obvious from where you were standing. The assumption that broke lived somewhere you couldn't see.

The first hour: stop the harm, then understand it

Your body reacts before your head does. Hot face, tight stomach, a strong wish that the bug belongs to someone else's commit. The urge that follows is the risky one: fix it forward, fast and alone, before anyone notices it was you. At that point you're protecting your image, and that often makes the outage longer.

Google's SRE book puts the order of priorities in one line: "Stop the bleeding, restore service, and preserve the evidence for root-causing" (Managing Incidents). The SRE workbook is even more direct. Customers don't care whether you fully understand the cause yet, and having a generic mitigation such as rollback or drain in place speeds recovery (Incident Response). Root cause can wait an hour. Your users shouldn't have to.

In practice, that looks like this:

  • Say it out loud, early. "I deployed the order-service change at 14:05. Could be related, checking now." That one message saves everyone a round of guessing. The same chapter suggests declaring an incident early: when you need a second team, when customers can see the problem, or when it's still unsolved after an hour of focused work.
  • Ask the boring question first: can we roll back safely? If yes, roll back. A hotfix you write while your hands are shaking is a new, untested change going into a system that's already hurting.
  • Don't freelance. One person changes production, everyone else investigates or keeps people informed. The SRE book has a case study where an engineer made an outage worse by changing things without coordinating with the person in charge of troubleshooting.
  • Check in with yourself. The same chapter tells responders to pay attention to their emotional state and ask for more support if they start to feel panicky. That advice sits in an operations manual, which tells you how normal the feeling is.
A small group of engineers gathers around one shared dashboard, narrowing down the incident before anyone tries a fix.
A good incident room is mostly a shared screen, one person at the controls and a short list of questions. Rollback first, theories later.
When rollback isn't safe

Rolling back code is usually easy. Rolling back data usually isn't. If your change ran a migration or wrote records in a new shape, the old code may choke on them. That's why one of the most useful sections in a risky PR is "How to undo this", written before merge, while nobody is stressed.

The day after: look at the chain, not the person

Once things are stable, the uncomfortable part starts: reading your own diff again without hoping it'll defend you. Usually the bug is plain once you look. You changed behavior in one layer and missed a contract with another. The tests covered the happy path but not the old data shape. The review was fine but narrow. The pipeline was green because it only checks what the team has taught it to check.

None of that erases your part in it. It does make your part more useful. Google's postmortem chapter says a blameless postmortem "assumes that everyone involved in an incident had good intentions," and adds a line worth remembering: "You can't 'fix' people, but you can fix systems and processes" (Postmortem Culture). Blameless doesn't mean nobody owns anything. It means the team cares more about the path that let the failure through than about picking one person to be the explanation.

That path is almost always a chain of small gaps: a missing test, a vague contract, a dashboard nobody watches, a release habit that worked fine until the day it didn't. Close one gap and the next person is safer. Blame the person and the chain stays exactly where it was. The same chapter warns that where blame is on the table, "people will not bring issues to light for fear of punishment." You want the opposite: the person who shipped the change should be the best witness in the room. If you want to go deeper on running that conversation, there's a whole post on blameless postmortems.

Make careful the default

The tempting lesson is "be more careful next time." Care matters, but care powered by fear wears out. A scared engineer double-checks today's change and still misses tomorrow's. What lasts are habits that make the careful path the easy one:

  • Smaller releases, so a bad one has a small blast radius and an obvious suspect.
  • Tests with old and weird data: the five-year-old row as well as the fixture you made yesterday.
  • A rollback note on every risky PR, and a check now and then that rollback still works.
  • Flags around behavior changes, so turning something off doesn't need a deploy. Feature flags are worth learning early.
  • Dashboards and alerts that point at the failing path, so the first report doesn't come from a customer.

Your reviews change too. Before, you mostly asked "does this work?" After your first incident you start adding a few more questions. What is this change assuming? What old data or state might still be out there? If this goes wrong, how will we find out? Can we turn it off? Can we roll back without making the data worse? None of these make a PR look impressive. They're the questions that stop a system from running on luck.

A still horizon over water at dawn, the kind of view that fits the hour after the alerts stop.
The lesson usually shows up after the alerts stop, when the team asks which guardrail, habit or question should exist before the next release.

If it just happened to you

Please don't turn it into a private verdict on who you are. Own your part, help fix what you can, write down what you saw while it's fresh, then ask what the system needs so the next person has an easier time. Breaking production isn't a badge, and an incident doesn't teach anything by itself. It teaches something when people take the time to look at it together.

Panic says: make this stop so I can stop feeling exposed. Ownership has a longer list: reduce the harm, trace the path, add the guardrail, share what you learned. The alerts stop eventually either way. What matters is whether the team is easier to trust afterward.

Try this week

  • Find out exactly how your team rolls back a deploy, and try it once in staging.
  • Add a short "How to undo this" section to your next PR that touches data or config.
  • Read your team's most recent postmortem and trace the chain of gaps behind the trigger.
  • Save a one-line message like "I deployed X at 14:05, might be related" so you don't have to think about wording mid-incident.
What did you think?

Frequently asked questions

What should I do first when my deploy breaks production?
Tell the team right away that your change might be related, then focus on stopping the user impact. If a rollback is safe, roll back before you hunt for the root cause. Google's SRE book puts it in that order: stop the bleeding, restore service, preserve the evidence for later.
Is breaking production a sign I'm a bad engineer?
No. Most incidents come from a small change meeting an assumption nobody wrote down. Teams that run blameless postmortems treat the person who shipped the change as the best witness, because, in the words of Google's postmortem chapter, you can't fix people but you can fix systems and processes.
When is a rollback not safe?
When the change touched data. Code can usually go back to the previous version in minutes, but a migration or records written in a new format may break the old code. Write down how to undo a risky change before you merge it, and test that path.