Why an Incident Can Outlast a Rollback — Sequencing Data Changes

Rolling back the application leaves data changes in place. Using a due date change feature as an example, we work through a deployment sequence that lets old and new versions coexist.
← All posts
온
온틀 리서치
2026년 11월 18일 Updated 2026.11.24 55 min read views 9

Something went wrong just after deployment. You took down the new version and brought the previous one back. The interface returned to normal. But some customers still cannot open their task lists.

In situations like this, look at the data before the application. The previous version may be unable to read values saved by the new one. A value that used to be required may be missing, an unfamiliar status may have appeared, or a date may now mean something different.

“Undoing a deployment” bundles together two different jobs: reverting the running application and reverting what has already been stored. Completing the first does not complete the second.

When reviewing a feature that changes data, I think there is a question worth asking before “How should we release this?”

“Once a customer has saved something through this feature, can the previous version still read it?”

A list of code changes is not enough to answer that. You need to trace what information appears, when it appears, who reads it, and when it becomes safe to retire its original meaning.

One new button can change how data is stored

Suppose we are adding a feature that lets customers request a due date change in a service like ONTLE, which helps teams manage project progress. The workflow and data fields below are illustrative design examples. They do not describe ONTLE’s actual internal implementation or operational history.

The existing feature is simple. Each project has one confirmed due date. When the person responsible edits it, the new date becomes the project’s due date.

Now we want to add customer requests and approval by the person responsible. The customer enters a preferred date and a reason. The person responsible reviews the request and approves or rejects it. Until approval, work continues against the existing due date.

Consider a specific situation.

A customer asks to move a project’s due date from June 18 to June 25. The person responsible needs to check a partner’s schedule, so they do not approve it immediately. In the meantime, task lists and deadline reminders must still show the existing confirmed due date. The customer’s request screen should show the preferred date and indicate that it is under review.

There is no longer just one date.

Information Value in this example Business meaning
Confirmed due date June 18 The date that currently governs work and reminders
Requested due date June 25 The date the customer wants but that has not yet been agreed upon
Request status Under review An indication that the request is awaiting a decision

The most dangerous implementation is to save the requested date directly into the existing due date field and simply add an “Under review” label to the screen. The person building the interface may think the distinction is clear. But if the program sending deadline reminders reads that same field, it will treat the requested date as confirmed.

This is not a display bug. It comes from storing information with different meanings in the same place. However quickly you roll back the deployment, you cannot automatically restore the meaning of a date that has already changed.

Start with the rule, before naming the field

When development begins, it is tempting to start by defining storage fields. A name like requested_due_date makes the work feel concrete. But first, write the business rule in one sentence.

For this example, the starting point is: “An unapproved request does not change the confirmed due date.”

Next, define what must become true together at the moment of approval. If the request’s status changes to approved, the confirmed due date must also become the approved date. Changing only the confirmed due date while leaving the request under review is wrong. So is the reverse.

We will call a condition that must hold regardless of execution order an “invariant.” You do not need a complicated list of rules. A sentence that lets an operations person say, “If this is the state, something has gone wrong,” is enough.

But do not fold every rule into the same change. How many times a request can be edited, whether rejection requires a reason, and whether customers can cancel are separate decisions. The more you bundle into one deployment, the harder it becomes to narrow down the cause when something goes wrong.

For the first release, you might support only customer request submission and approval or rejection by the person responsible. You might require customers to cancel and resubmit if they want to change a request. That is a choice to keep the initial workflow small enough to validate, not a technical limitation.

A smaller scope does not mean you can skip exception handling. You still need to decide what happens to a new request when the same project already has one under review. As soon as you add a Save button, that input can arrive.

Multiple versions coexist within one service

Thinking of deployment as a single replacement misses some important situations. You may update the server application while a customer still has a screen open from that morning. A separate program that sends scheduled reminders may be updated on a different schedule. An old administration tool may still edit only the original fields.

Count all of these programs as participants that read or write data.

If you check only the new interface, customer requests arrive correctly and approvals appear to work. But what happens when someone directly edits the due date through a screen that has been open for hours? Meanwhile, the request screen still contains a request based on the previous date. The moment someone clicks Approve, you have to decide which change takes precedence.

The concept you need is compatibility. Here, that means preserving business meaning when different versions work with the same information. A screen opening without errors is not enough. A program that misinterprets a date and completes successfully can be harder to catch.

Before deployment, list the participants as shown below. Omit any that do not exist in your service.

Participant Information it reads Information it writes Question to check
Customer request screen Confirmed due date, request history Requested due date, reason Can it safely accept requests from screens left open for a long time?
Staff work screen Confirmed due date, requests awaiting review Approval or rejection Does it check for changes made since the request was submitted?
Deadline reminder job Confirmed due date Delivery results Could it mistake a date under review for a confirmed date?
Operations editing tool Current project information Confirmed due date Can it make changes that bypass approval?

The point is not to promise that every program will change at once. It is to establish a state that remains acceptable even when some participants are updated later.

Keep the new feature hidden in the first deployment

The sequence I recommend is to prepare the new storage first, then enable the feature that uses it.

Changing a data structure or moving existing values is called a “migration.” In this example, the first migration makes it possible to store due date change requests separately while preserving the existing confirmed due date.

The confirmed due date stays on the project. Each request stores the target project, requested date, reason, and request status. Also consider what information will be needed to make a decision at approval time. Recording the confirmed due date at the time of submission helps the reviewer understand the context of the customer’s request.

Comparing dates alone, however, cannot reveal every change. A date could change and then change back. How to handle that needs to be decided separately as part of the approval process.

Do not expose the request button to customers in the first deployment. First, verify that existing screens and reminders continue to work. Adding new storage must not, by itself, change existing behavior.

There is a small advantage here: it gives you a narrower starting point for investigation. If you have not accepted any new requests yet, you can look at the structural change before investigating customer input or approval logic. Separating changes makes the questions you need to answer clearer.

Of course, adding storage is not always a lightweight operation. A database is a system for storing and retrieving information. Depending on the system and the amount of data, other operations may have to wait while its structure changes. Decide how to run the migration based on that system’s documentation and your operating environment.

Instead of assuming “We are only adding a field, so it is safe,” check how long the operation is expected to take and how to stop it.

Do not invent a plausible history for existing data

Once the new structure is ready, you need to decide how to handle existing projects.

A common temptation is to create one “approved due date request” for every project. The new interface can then assume that request history always exists. That is convenient to develop against.

But unless there is evidence that an existing confirmed due date was set through a customer request and staff approval, you should not create that record. You would be recording work that never happened just to fill an empty history.

In this example, the natural starting point is to leave existing projects’ confirmed due dates alone and give them no request history. No requests means the new feature has not been used yet; it does not mean data is missing.

The interface needs to accept that distinction too. It can simply say, “No previous requests.” Treating an absence of data as a bug eventually leads to fabricated defaults being written into storage.

Sometimes existing information does need to be populated into a new structure. This is called a “backfill.” For example, if you move where an existing date is stored, you need to copy its original value to the new location.

In that case, consider processing small batches rather than moving everything at once. Decide whether processing can resume from the point of failure and how to avoid overwriting values changed during the copy with older ones. The job is not complete until you have checked that the values match, not just counted completed records.

Adding the request feature and moving the storage location of existing due dates are separate changes. Unless there is a reason they must happen together, keeping the location unchanged makes this release simpler.

Set the read rules before opening the new interface

Now make the application capable of handling both kinds of dates. The most important thing is to prevent each screen from picking whichever value is convenient.

The task list reads the confirmed due date. Deadline reminders read a date with the same meaning. The request review screen shows the confirmed and requested due dates side by side. The presence of a requested date should not change the date displayed everywhere.

An API is an interface through which programs exchange information. In API responses, a date’s name should make its meaning clear. If due_date in an existing response meant the confirmed due date, do not quietly change that meaning when adding the request feature.

Adding fields does not automatically guarantee compatibility. Check whether recipients accept fields they do not recognize. Also check whether existing fields can suddenly be empty and how recipients react to additional status values.

At this stage, you can use sample request data to check read behavior before accepting real requests. Test projects with no requests, requests under review, and rejected requests. Check both the text on screen and the date selected by the reminder job.

In particular, avoid a vague rule such as “Read the new date first, and fall back to the old date if it is missing.” If the two dates mean different things, they are not substitutes. Choose a value based on the business purpose it serves, not whether it happens to be populated.

Approval cannot rely on the last screen someone saw

After a customer submits a request, the person responsible opens the review screen. It shows the confirmed due date at that moment and the customer’s preferred date. The reviewer steps away to contact a partner.

Suppose another staff member changes the confirmed due date in the meantime because of developments in the project. When the first reviewer returns and clicks Approve, they could overwrite that newer change based on an outdated screen.

To prevent this, check the current state at the moment of saving. Checking once when the screen opens is not enough.

One design uses a number that increments whenever the due date changes. If the version the reviewer saw was 12, the approval request sends 12 along with it. If the number at save time is 13, something has changed in the meantime, so approval stops.

You can call this number a “change version.” It is different from an application release version. It identifies which state a particular piece of business information is in.

There is a condition: every path that changes the due date must update this number too. If only the new approval screen increments it while the operations tool leaves it untouched, the comparison cannot be trusted. This is where the earlier list of participants becomes useful.

If approval is allowed, group the request status change and confirmed due date change into one transaction. A transaction is a unit that makes a set of writes either all take effect or all be canceled. The checks of the current version and request status must also be arranged so that another change cannot slip in and invalidate the decision.

The implementation must suit the database you use. The requirements are clear: do not approve a request that has already been processed, do not silently overwrite changes the reviewer has not seen, and do not save only half of an approval result.

When a conflict occurs, the interface should do more than say, “An error occurred.” Explain the next action: “The due date changed while you were reviewing this request. Check the latest information before making a decision.” Reviewers need to understand why the system stopped so they do not try to work around it with a manual edit.

Distinguish disabling a feature from rolling back the application

You enable the new feature for a limited set of work. Request submission works, but a problem appears on the approval screen. If your only prepared response is to roll the entire application back, your options are limited.

A feature flag is a mechanism for controlling whether a particular feature is available in a deployed application through configuration. In this example, you can control request submission and approval separately.

A single switch that turns both off can create awkward situations. While trying to stop new requests, you might also block access to requests already submitted. Operations staff could struggle even to establish that work is waiting.

Define what happens during a shutdown for each workflow state.

State at the time Action when the feature is disabled
Request not yet submitted Block new submissions and explain that the feature is currently unavailable
Submitted request under review Keep it viewable and assign someone to handle follow-up
Request affected by an approval problem Block approval and explain why it is on hold
Successfully approved request Preserve the approval result and confirmed due date

The key decision in this table is the last row. Disabling a new feature must not, by itself, undo a date agreed upon by the customer and the person responsible. Stopping a feature and canceling business decisions are different actions.

Hiding a button is also not enough to block execution. Screens opened earlier can still send requests, so the server that performs the operation must check the configuration too. Whether to stop work already in progress needs a separate rule.

An emergency shutdown does not mean deleting existing requests. It means limiting further impact while keeping the remaining work manageable.

Testing must cover more than the new version

The developer runs through submission and approval using the latest application. That check is necessary, but it does not cover the combinations that arise during deployment.

There are four key combinations to check for this change.

  1. The previous application uses the expanded data structure.
  2. The new application reads existing projects with no request history.
  3. A previously opened screen sends a save request to the new application.
  4. After the new feature saves data, the proposed rollback version reads that data.

The fourth needs its own test. The fact that the previous version worked before deployment is no evidence that it can handle the new data.

Tests should check business outcomes, not just whether the application stays running. Verify that a date under review does not change which projects receive reminders, that task lists and request history agree after approval, and that a conflicting approval preserves existing values.

Choose failure points as well. If approval fails before the writes complete, neither change should remain. If the writes finish but the response cannot reach the screen, a fresh read should show the result that was actually committed. This checks that the message shown to the user and the stored state are not treated as the same thing.

Include operations editing tools in testing. Even if they are rarely used in normal conditions, they may see more use during an incident. An urgent edit through a tool unaware of the new constraints can introduce another inconsistency during recovery.

Record both the application version tested and the state of the data used. “The rollback candidate successfully loaded the task list with a saved request present” is more useful for a rollback decision than “Due date change test passed.”

Watch for business inconsistencies as well as errors

Quiet error logs after release are no reason to relax yet. A program can read the wrong date and still finish successfully.

For this feature, watch for approved requests whose results do not match the confirmed due date. But if a legitimate due date change happened afterward, different values are normal. Simply comparing the current value with every past approved value and labeling all differences as errors creates useless alerts.

You therefore need to distinguish the approval event from subsequent changes. The current state alone makes it hard to reconstruct the sequence. Record what an investigation needs: which request on which project was processed, the outcome, and the change version at that time.

There is no need to copy the customer’s entire reason into error logs. Separating the identifiers needed for tracing from the business content also reduces unnecessary spread of information.

Interpret the numbers carefully too. Whether one failed approval should stop the rollout or be treated as a temporary conflict depends on its business impact. By contrast, a request changing to approved while the due date remains unchanged is a signal that is hard to accept.

Writing down stop conditions before release lets everyone agree on these distinctions. Once an incident starts, developers and operations staff can easily reach different conclusions from the same numbers. Deciding in advance who can stop new requests or approvals, and on what grounds, makes the response faster.

For a service with few requests, rates alone can be difficult to interpret. It may be more useful to follow an actual request from start to finish, checking the customer screen, staff processing, confirmed result, and subsequent reminders.

Choose the rollback version before deployment

When something goes wrong, it is easy to say, “Go back to the previous version.” But the immediately preceding version is not necessarily the right recovery point.

If the first deployment added support for reading the new data structure and the second enabled the request feature, the first deployment may be a rollback candidate. Even without offering the feature, it can handle the expanded structure and stored information.

A rollback means returning an application or other component to an earlier state after a problem. In this design, the goal is not to make everything exactly as it was before release. It is to stop new requests while keeping existing projects and completed work stable.

Rollback documentation should include more than a version number. Specify which data states that version can handle: whether it can display requests under review, whether it can read approval results, and who will handle unprocessed requests.

If incorrect values have already been saved, they need a separate correction process. Restoring all data to an earlier point could erase subsequent work by customers who were unaffected. Narrow the correction to the affected records and fields.

For example, if an unapproved requested date was written into the confirmed due date, first check whether any other legitimate changes occurred after that request. Blindly restoring the original value could erase those changes too. If the change history is insufficient to decide, stop automatic correction and have the person responsible verify it.

A recovery procedure does not need to resolve every situation automatically. It needs to recognize when there is not enough evidence to make a decision and stop.

Leave removal of old paths for a separate deployment

Once the request feature is stable, it is tempting to remove the old direct due date editing feature. But releasing the new feature does not prove that the old path is no longer used.

Operations staff may still use direct editing in certain situations. Internal tools may still call it. You also need to consider whether an old screen might attempt to save several days later.

At this stage, you need evidence of usage. You might inspect actual call logs or remove the direct editing entry point from the interface and then watch for remaining calls. Set the observation period with the latest-running jobs and business cycles in mind. There is no universal number of days that will be enough.

When closing the old path, design how requests will be rejected too. If an old screen sends an edit request, do not save it; direct the user to the new approval process. Silently ignoring the value could leave someone believing they saved a change and continuing their work on that assumption.

You can retain an exceptional operations editing feature if needed. But it must follow the same change rules as ordinary approval, and it must be possible to identify who changed what and why. Choosing to retain an exception path is different from leaving it unmanaged.

This sequence—adding the new structure, moving usage to it, and then removing what is no longer needed—is called “expand and contract.” It breaks one large replacement into several changes that can each be verified.

Old code remains during the intermediate stages. It looks less tidy. That is why you should also assign ownership and define removal conditions. Rather than putting only a removal date on the calendar, attach a verifiable condition such as “Remove once old calls have stopped and rollback no longer depends on this path.”

Leave room for cleanup in the release schedule

The practical objection to this approach is speed. Deploying and checking a small feature several times adds work. Preparation and cleanup can seem to take longer than building the feature itself.

Not every change needs the same procedure. Changes to wording or layout that do not alter the interpretation of stored information can be handled more simply. Conversely, a change that alters or removes the meaning of existing values is not simple merely because it takes fewer deployments.

For a small team, it is better to divide work at the risky boundaries than to keep adding deployment stages. Preparing the new structure, starting to accept customer input, and removing the old path each carry different responsibilities. Being clear about what to verify at each point lets you keep only the necessary steps.

Make those distinctions visible in the project schedule too. A single item labeled “Due date change feature complete” makes it look as though all the work ends when the button appears. In practice, there is still limited-use validation, migration of existing tools, and removal of temporary code.

If a project management service like ONTLE is being used to coordinate this work, the scope presented for customer approval should be specific. For example, the initial release provides request submission and review; designated staff check the results during the validation period; and the existing direct editing feature closes once the agreed conditions are met.

Giving even the final cleanup work an owner and completion criteria helps prevent temporary compatibility code from becoming untracked debt. It also makes clear which checks are being skipped when there is pressure to release. Schedule discussions can then focus on concrete work instead of a vague request to “test a little more.”

FAQ

How do we decide whether a due date should store only a date or a time as well?

Start by defining the commitment to the customer. “Complete within that business day” and “Submit by a specific time” require different information. If you commit to a time, also specify the time zone. Arbitrarily setting the time to midnight for convenience can change the meaning depending on the viewer’s location or how reminders are calculated.

What should happen if a customer selects the wrong project when requesting a due date change?

Show the project name and request details together just before submission, and clearly identify the target project afterward too. You can require customers to cancel an incorrectly submitted request and submit a new one for the right project, rather than quietly changing its target. That preserves a clear record of which work the reviewer considered.

What if someone loses approval permission but clicks Approve on a screen they left open?

Use their permissions at the moment approval is executed. Having permission when the screen opened does not authorize a later action. If permission has been revoked, reject the operation and explain how to pass the work to someone currently authorized to approve it. Both button visibility and permission checks at execution time are needed.

Can customers attach files to explain their requests?

Yes, but distinguish between uploading a file and submitting a request. Files may be uploaded without ever being submitted. Before including attachments in scope, decide when to clean up files that are not linked to submitted requests and whether access to attachments is limited to people who can view the request.