Users found a critical bug in production. What do you do?
In a production incident the goal is to reduce harm to users, and the cause is investigated afterwards. The order is: confirm the problem and assess its scale, notify the decision makers, choose a mitigation (rollback, feature flag off, hotfix) and verify it. QA reproduces and narrows the condition, verifies the fix and afterwards adds a check that would have caught the miss.
QA Fundamentals · Situational questions
In the evening support writes: customers cannot pay for orders. What do you do in the first 15 minutes?
A production incident breaks the usual order: there is no sprint, no queue, there are customers and money. In this situation QA often ends up between two extremes: doing nothing because "it is the developers' business", or rushing to fix. This lesson is about QA's role in an incident, why you stabilise first and investigate afterwards, and what exactly to say in the first minutes.
How it works and why. In an incident the goal is single: reduce harm to users, and the cause can be searched for later. So the order is: confirm the problem is real and assess the scale; notify the people who decide; choose a mitigation (rollback, switching the feature off with a flag, a hotfix); verify the mitigation worked; and only then investigate why the defect slipped through. QA is useful in four places: reproduce and describe (QA knows what "normal" looks like), narrow the condition ("only Visa cards, only after 18:50"), verify the fix before it is rolled out to everyone, and after the incident help make sure the miss does not repeat.
The course of an incident and QA’s place
Example: the first message. The weak version:
PROD IS DOWN!!! Payment does not work, is anyone looking???
Lots of emotion, no information: not what exactly, not for whom, not since when. The reader does not know if this is all customers or one, or whether to drop everything. The strong version:
[INCIDENT] Card payment returns 500
What I see: card payment → 500 in 3 of 3 accounts and 2
browsers. Wallet payment works.
Since when: first error in the logs 19:12, release 2.15
was rolled out at 18:50.
Scale: unknown; support has 4 complaints in 20 minutes.
Unknown: whether it depends on the card type, whether the
mobile version is affected.
Proposal: the rollback decision is for the dev lead; I
verify the rollback in production and the neighbouring
scenarios.
Next update from me: at 19:45.
Here the known and unknown are separated, there is a link to the release (a hint for rollback), a clear division of roles and the time of the next update, so nobody asks "how is it going?". The data here is illustrative. In a real incident the figures come from logs and support, not from memory.
Limits and alternatives. Not every production bug is an incident: the level of response depends on consequences (money, data, security, reach), and a minor one needs only an ordinary ticket. Rollback is not always possible: if the release changed the data schema, returning the code can be more dangerous than leaving it. A hotfix under pressure carries its own regression risk, so before the rollout at least a minimal check of neighbouring scenarios is needed, not only "it no longer fails". A separate question: what to do about users already affected (repeated charges, unfinished operations): this is usually a decision for the business and support, but QA helps find and count the affected records.
Common mistakes
- Looking for the cause before the harm is stopped: customers keep losing money while the team reads code.
- Writing only to one developer in private: others do not know about the problem and the answer depends on who is online.
- Checking the fix only on staging: production has other data, configs and integrations, and that is where it must work.
- Looking for the guilty instead of the causes: people hide information and the next review gets worse.
- Closing the incident without a new test or regression check: the same defect returns with the next change.
Check yourself
Rolling the release back requires a database schema change. A developer proposes a hotfix instead of rollback. What should QA do here?
Answer
Support a choice based on risk rather than "faster": remind that rollback with a schema change is also risky, and agree to verify the hotfix on the environment closest to production (data, configs) and then in production. Separately list neighbouring scenarios to check, because a hotfix is written quickly and may touch other things.
Why is it important to state what you do not know in an incident message?
Answer
Because otherwise the unknown reads as absent: if you do not write that you have not checked the mobile version, others assume it is fine. A list of unknowns also distributes work: each item becomes a task for someone.