Skip to content

AccountDeletionJob: fix non-idempotent storage cleanup - #799

Merged
SuperSandro2000 merged 1 commit into
masterfrom
fix-non-idempotent-cleanupaccount
Sep 9, 2026
Merged

SuperSandro2000 merged 1 commit into
masterfrom
fix-non-idempotent-cleanupaccount

Conversation

@majewsky

@majewsky majewsky commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

We encountered a bug in prod where deletion of a primary account executed CleanupAccount() successfully on the first attempt, but then failed during ForfeitAccountName() because of replicas with the same name that are still attached to this primary. Subsequent deletion attempts then failed because CleanupAccount() raised a NotFoundInStorageError.

We encountered a bug in prod where deletion of a primary account
executed CleanupAccount() successfully on the first attempt, but then
failed during ForfeitAccountName() because of replicas with the same
name that are still attached to this primary. Subsequent deletion
attempts then failed because CleanupAccount() raised a
NotFoundInStorageError.
@majewsky
majewsky requested a review from a team as a code owner September 9, 2026 15:01
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/sapcc/keppel/internal/tasks 84.24% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/sapcc/keppel/internal/tasks/account_deletion.go 79.84% (ø) 1419 1133 286

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

@SuperSandro2000
SuperSandro2000 merged commit b953f0f into master Sep 9, 2026
6 checks passed
@SuperSandro2000
SuperSandro2000 deleted the fix-non-idempotent-cleanupaccount branch September 9, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants