← All postsHow-to

Rollback plan: deciding in advance how to undo it

A rollback plan says how to reverse a change that goes wrong. What it must specify, why data makes it hard, and when rolling forward is the better answer.

How-toR

A rollback plan is the agreed route back if a change does not work. It is written before the change, because the moment you need it is the moment nobody is thinking clearly — the system is degraded, people are watching, and somebody is improvising a recovery that was supposed to be decided calmly in advance.

What a rollback plan must cover

  • The trigger: what specifically makes somebody decide to roll back, stated as a measurable condition.
  • Who makes that call, and who they need permission from — ideally nobody, within an agreed window.
  • The exact steps to reverse, tested rather than assumed.
  • Expected duration, since a rollback that takes longer than a fix is not a rollback.
  • What happens to data written since the change, which is the hardest part.
  • Dependencies: what else breaks if this component reverts while others do not.
  • How to verify the rollback worked, rather than assuming because the steps completed.
  • Communication: who is told, when, and what customers see.

Why data makes it hard

Code reverts cleanly; data does not. If a change altered a schema, wrote new fields, or transformed existing records, going back may mean losing everything written since deployment — or keeping data the old version cannot read. That is why experienced teams separate schema changes from code changes and deploy them apart: the schema change is made backwards-compatible first, the code follows, and only then is the old column removed. It is more steps, and it is the difference between a rollback that is possible and one that exists only on paper.

A plan that has never been tested is a hypothesis. Rehearse rollback in a non-production environment with the same data shape, because the steps that fail are always the ones nobody tried — a migration that cannot run in reverse, a cache that holds the old shape, a queue full of messages in the new format.

When rolling forward is better

  1. Where the fix is small, understood and faster to apply than the reversal.
  2. Where rollback would lose customer data written since the change.
  3. Where the previous version has a known defect of its own.
  4. Where partial rollout means only some users are affected and the blast radius is already contained.
  5. Decide the default in advance, since arguing about it mid-incident costs more than either option.
  6. Record which was chosen and why, because the pattern across incidents tells you whether your changes are too large.

Ettex Docs keeps the plan with the change record and what was actually done during the incident, which is what a postmortem reconstructs. The decision between rolling back and rolling forward belongs in that record too.

Frequently asked

What should a rollback plan specify?

The measurable trigger, who decides, tested reversal steps, expected duration, what happens to new data, dependencies and how success is verified.

Why is data the hard part?

Code reverts cleanly but data does not. Schema changes should be made backwards-compatible and deployed separately from code so reversal stays possible.

When is rolling forward better?

When the fix is small and faster than reversal, when rollback would lose data, or when the previous version has defects of its own.

MI
Written by Maria I.

Part of the Ettex team — writing about product, engineering and the future of work.

More posts
Get the best of the Ettex blogProduct news, guides and tips — straight to your inbox, no spam.