All problems

Failed Report Refresh Deletes the Last Good Snapshot

Level 2 · node · Reliability · Existing published snapshot removed during temporary build failure

Scenario

A fictional facility-inspection report service builds a new report in temporary storage, then replaces the published snapshot on success. When a refresh fails, the previous good snapshot should remain available. Instead, failure cleanup also clears the published snapshot, leaving the report view empty.

Requirements

On success, replace the published snapshot with the new report. On failure, discard only the temporary report and retain the last successfully published snapshot. If the first refresh fails, no published snapshot should be created.

Acceptance criteria

  • A successful refresh publishes the new snapshot.
  • A failed refresh preserves the previously published snapshot.
  • A failed refresh removes its temporary result.
  • A failed initial refresh does not create a published snapshot.