Privacy and preparation
Dataset release rollback plan: withdraw a bad version, keep the trail
By SourceX Editorial · Updated
9 sections
Short answer
A dataset release rollback plan withdraws a defective version by changing its status, not erasing it. Mark the version withdrawn, stop new access, keep its manifest, digests and recipient log, publish a corrected release under a new version ID, and notify every recipient with the required action. Delete the bytes only when rights or privacy demand it, and record that deletion too.
License terms
Dataset release rollback
Key takeaways
- Never edit a released version; withdraw it and publish a replacement with a new ID.
- Pick the action from the defect: most quality issues need withdraw and replace, while rights and privacy defects need a purge.
- Pause snapshot expiry, VACUUM and lifecycle rules before any rollback, or the evidence can vanish on schedule.
- Trace impact forward from the defect through examples, versions and recipients, not backward from the complaint.
- A withdrawal notice must say which version, why, what replaces it and what each recipient must do by when.
How do you withdraw a defective dataset release without erasing its history?
Withdraw it by changing its status, not its contents. Mark the version withdrawn in the release register, stop new downloads, keep its manifest, file digests, approval and recipient log exactly as they were, publish a corrected release under a new version ID, and tell every recipient what was wrong and what to do with their copy. The bad version stays identifiable forever; it just stops being the one anyone should use.
That rule is borrowed from software releases, where it is settled. The Semantic Versioning specification says the contents of a released version must not be modified and that any change must ship as a new version. Its FAQ covers the accidental bad release directly: fix the problem in a new version, and even then do not modify the released one, but document the offending version and inform users about it.
Python's package index has a mechanism for the same move. PEP 592 lets a repository mark a released file as yanked: installers must ignore it whenever another version satisfies the request, yet it stays available to anyone who pinned that exact version, and the reason for yanking can travel with it. A withdrawn dataset version should behave the same way, hidden from new use and still resolvable for audit.
A dataset release rollback plan is the written version of that discipline for data: who decides a release is bad, which actions are allowed, what evidence each step leaves behind and how replacements link back to what they replace. Writing it before the first incident is what keeps a rushed fix from overwriting the only record of what recipients actually received.
Rollback, withdrawal, replacement or purge: which does this defect need?
Match the action to the defect, because the four actions are not interchangeable. A rollback points the current release back at an earlier good version. A withdrawal marks a version as not to be used while keeping it readable for audit. A replacement publishes a corrected version that supersedes the bad one. A purge destroys bytes, and is the only one that cannot be undone.
Most quality defects need withdrawal plus replacement. Purge is reserved for defects where keeping the data is itself the problem, such as records the supplier had no right to include or personal data that should have been removed. Even then, the metadata about the purge is kept.
| Defect found | Typical action | What stays in the audit trail | Who signs off |
|---|---|---|---|
| Files do not match the approved manifest | Withdraw; re-release the approved bytes under a new ID | Both manifests, both digests, the transfer log | Release owner |
| Label or code errors in a subset of examples | Withdraw; replace with corrected labels and a change list | Issue record, list of affected example IDs, regression results | Dataset operations owner |
| Schema or format break that stops recipients loading the data | Roll back the current pointer, then replace | Failing and passing validation outputs, both schemas | Release owner |
| Records outside the licensed scope | Withdraw at once; purge bytes after counsel confirms | Record IDs removed, scope clause, purge confirmation | Rights owner and counsel |
| Residual personal identifiers after de-identification | Withdraw at once; purge and re-run de-identification | Detection method, counts by field, purge confirmation | Privacy owner |
| Correct but stale data after a source refresh | No withdrawal; publish a new version and mark the old one superseded | Release notes linking both versions | Dataset operations owner |
What does a table or bucket rollback keep, and what can retention delete later?
Storage-level rollback is useful but it is not a withdrawal record, and retention jobs can erase the evidence weeks later. Check what your platform keeps before relying on it.
Apache Iceberg's Spark procedures include rollback_to_snapshot, which rolls a table back to a given snapshot ID, and expire_snapshots, which removes older snapshots and the data files only they require. Delta Lake's RESTORE returns a table to an earlier version, but its documentation warns that restoring to a version whose files were deleted manually or by VACUUM will fail; VACUUM's default retention threshold is 7 days, time travel past the retention period is lost after it runs, and table history is kept for 30 days by default.
Object storage behaves the same way in a different shape. In an S3 bucket with versioning enabled, a plain delete only adds a delete marker and the earlier versions remain; deleting a specific version ID removes it permanently, and lifecycle rules can expire noncurrent versions automatically. A withdrawn release held in a versioned bucket can therefore disappear on schedule unless someone excludes it from those rules.
The practical consequence is a hold step. Before rolling anything back, pause snapshot expiry, VACUUM and lifecycle expiry for the affected paths, and copy the withdrawn manifest and digests to the release register, which should not depend on any table's retention settings.
Which steps does a withdrawal and replacement runbook follow?
Run these steps in order and do not skip the evidence column; the record is what lets you answer a recipient, an auditor or a counterparty months later. Each step names an owner so nobody has to improvise during an incident.
| Step | Action | Owner | Evidence kept |
|---|---|---|---|
| 1. Open the issue | Log the defect with an issue ID, the release version and how it was found | Whoever found it | Issue record with timestamp and reporter |
| 2. Set severity | Classify as quality, format, rights or privacy, and decide withdraw or supersede | Dataset operations owner | Severity decision with the rule applied |
| 3. Freeze evidence | Pause expiry and lifecycle jobs; copy manifest, digests and approval to the register | Release owner | Hold record and the copied manifest digest |
| 4. Stop new access | Revoke or expire links, mark the version withdrawn in the catalog | Release owner | Access change log with times |
| 5. Trace impact | List affected source records, derived examples, later versions and recipients | Dataset operations owner | Impact list with example IDs and recipient IDs |
| 6. Repair | Fix the source or the transform; never edit the withdrawn files | Data engineer | Code or rule change with a link to the issue |
| 7. Regression check | Re-run validation, plus a test that would have caught this defect | Data engineer | Validation output for old and new versions |
| 8. Release the replacement | Publish under a new version ID with a manifest that names what it supersedes | Release owner | New manifest, approval and change list |
| 9. Notify recipients | Send the change notice and the required action to every recipient of the bad version | Account owner | Recipient log with send and acknowledgment times |
| 10. Reconcile and close | Confirm each recipient switched, deleted or certified, and close the issue | Dataset operations owner | Reconciliation sheet and closing note |
Which released examples and recipients does a source change touch?
Answer it by walking the lineage forward from the defect, not backward from the complaint. The complaint names one example; the defect usually reaches more. Start from the source records or the transform that went wrong and list everything derived from them.
The walk only works if each release already records three joins: example ID to source record IDs, example ID to the release versions that contain it, and release version to the recipients who received it, with dates. Without those joins the impact list becomes a guess, and the safe fallback is to treat every recipient of every version since the defect entered as affected.
- Source level: which source records or fields were wrong, and since when.
- Transform level: which pipeline version introduced or carried the error.
- Example level: which released example IDs were built from those records or by that transform.
- Release level: which versions contain any affected example, including later versions that inherited it.
- Recipient level: who received each affected version, through which channel, and whether they still hold it.
- Downstream level: whether a recipient has reported training or evaluation runs that used the affected version, so they can decide on re-runs.
What should a withdrawal notice and tombstone record say?
Say exactly which version is withdrawn, why, what replaces it and what the recipient should do, in that order. A notice that only says a new version is available leaves recipients unsure whether they must stop using the old one.
Persistent identifier registries have worked out the public side of this. DataCite does not allow a Findable or Registered DOI to be deleted; for mistakes or retractions it recommends changing the DOI state from Findable to Registered and pointing it at a tombstone page that keeps the citation and the DOI and states why the item is unavailable. A dataset release register can follow the same pattern internally: the version ID keeps resolving, but to a withdrawal record instead of the files.
The Datasheets for Datasets questionnaire asks the matching maintenance questions: whether there is an erratum, whether older versions will continue to be supported, and how obsolescence will be communicated to users if they are not. A release program that can answer those before an incident already has most of its notice written.
- Withdrawn version ID and manifest digest.
- Date the defect was found and the date the withdrawal took effect.
- Defect class and a plain description of what was wrong, with the count of affected examples.
- Replacement version ID, or a statement that none will be issued.
- Required recipient action: switch, delete, certify deletion, or no action.
- Deadline for that action and the contact for questions.
- Whether the issue affects other versions the recipient holds.
Worked example (illustrative): a support-ticket release with shifted resolution codes
Everything in this example is illustrative. A supplier releases version 2.3 of a support-ticket dataset built from a help desk export: 48,000 resolved tickets with their final resolution code, delivered to three recipients. Eleven days later a recipient's evaluation lead reports that tickets closed as duplicates are labeled as solved.
The issue is logged and classed as a quality defect, so the action is withdraw and replace. The release owner pauses lifecycle expiry on the 2.3 prefix and copies its manifest to the register. Tracing shows the transform mapped one source status to the wrong code after a help desk field was renamed. 2,140 tickets, about 4.5 percent of the release, carry the wrong label, and version 2.2 is unaffected because the rename happened after it shipped.
Version 2.4 is released with corrected labels, a change list of the 2,140 example IDs and a new validation rule that fails any release where a source status has no mapped code. All three recipients receive a notice naming 2.3 as withdrawn, 2.4 as its replacement and a 30-day window to switch and delete 2.3. Two confirm within a week; the third confirms after a reminder, and the issue closes with the reconciliation sheet attached.
The exception in the same case: one recipient had already used 2.3 in a reported evaluation. Deleting 2.3 would leave that result unreproducible, so the agreement's terms and the recipient's needs decide whether a retained copy is allowed for audit only. That choice is recorded, not assumed.
When should withdrawn bytes be purged, and when should you escalate?
Keep metadata always; keep bytes only when nothing forbids it. Records the supplier had no right to license, and personal data that de-identification missed, should not survive in a withdrawn release just to make the audit trail complete. Purge them, and keep the manifest, digests, the IDs of removed records and a purge confirmation instead, such as the storage deletion log or a certificate of destruction from whoever held the copy.
A rollback plan also cannot reach copies outside your control. Once a recipient has the files, the agreement decides what they must do, which is why the notice asks for an action and a confirmation rather than assuming deletion happened.
Stop and escalate instead of following the runbook alone when any of these apply:
- The defect involves records outside the licensed scope or a third party's data: bring in the rights owner and counsel before notifying.
- Identifiers survived de-identification: bring in the privacy owner, because notification duties may apply beyond the recipients.
- A recipient has trained or published on the affected version: the remedy is a contract question, not an operations one.
- The lineage joins are missing and the impact cannot be bounded: widen the withdrawal to every version since the defect entered.
- The same defect class recurs across releases: pause new releases until the regression check is in place.
Which withdrawal terms should be agreed before a licensed release ships?
Withdrawal is easiest when the agreement already says what a withdrawal requires. Recipients should know before delivery whether a withdrawn version must be deleted, may be kept for audit, or must be certified as destroyed, and how quickly.
Under a SourceX agreement, delivery waits for the company's signature on scope and terms, and use, sublicensing and distribution of the de-identified dataset stay within what that signed document allows. De-identification is carried out by SourceX through approved processing routes, and exclusivity and term sit in each signed agreement, so a withdrawal and replacement process fits into terms that are already written down. A company curious whether its records could qualify can begin with a brief assessment, uploading nothing.
Frequently asked questions
What should a dataset release withdrawal and replacement runbook include?
It should name the steps from logging the issue to closing it, the owner of each step and the evidence each one leaves. The essential evidence is the withdrawn manifest and digests, the impact list of affected examples and recipients, the replacement manifest, and a reconciliation of recipient actions. Without the evidence column the runbook only describes a fix, not a defensible withdrawal.
Is rolling back a table the same as withdrawing a release?
No. A table rollback changes which version is current inside your platform, but recipients already hold copies of the bad version. A withdrawal is a recorded decision that the version must not be used, with a notice to everyone who received it and a check that they acted.
Can you delete a bad dataset version entirely?
You can delete the bytes when rights or privacy require it, but keep the metadata: version ID, manifest digest, reason, affected record IDs and proof of deletion. Deleting the record of the version as well leaves you unable to show what recipients received or why it was withdrawn.
How do you find which recipients received an affected example?
Join example IDs to the release versions that contain them, and release versions to the recipient log with delivery dates. If those joins were not recorded at release time, treat every recipient of every version since the defect entered as affected and narrow the list later.
Should a withdrawn version keep its version number?
Yes. Reusing a version ID for corrected content makes it impossible to tell which bytes someone holds. Keep the old ID pointing to a withdrawal record and give the corrected release a new ID that names the version it supersedes.
Sources
- The Semantic Versioning specification says a released version's contents must not be modified, and its FAQ says to fix an accidental bad release in a new version, document the offending version and inform users. Source
- PEP 592 lets a package repository mark a file as yanked so installers ignore it unless it is the only match or pinned exactly, keeping it available instead of deleting it. Source
- Apache Iceberg's Spark procedures include rollback_to_snapshot and expire_snapshots, which removes old snapshots and the data files only they require. Source
- Delta Lake's RESTORE fails for versions whose files were removed by VACUUM; VACUUM's default retention threshold is 7 days and table history is kept for 30 days by default. Source
- In a versioning-enabled S3 bucket a plain delete adds a delete marker, while deleting a specific version ID removes that version permanently. Source
- DataCite recommends tombstone pages for removed items that keep the citation and the DOI and state why the item is unavailable. Source
- DataCite does not allow Findable or Registered DOIs to be deleted and recommends moving an erroneous DOI to the Registered state. Source
- Datasheets for Datasets asks whether an erratum exists, whether older versions will continue to be supported and how obsolescence will be communicated. Source
See if your company qualifies
A short company assessment. No data uploads are needed.