Skip to content

fix(api): handle concurrent snapshot deletion during list endpoint - #1648

Open
AdamMagued wants to merge 2 commits into
aptly-dev:masterfrom
AdamMagued:fix/issue-1619-snapshots-async-lock
Open

AdamMagued wants to merge 2 commits into
aptly-dev:masterfrom
AdamMagued:fix/issue-1619-snapshots-async-lock

Conversation

@AdamMagued

Copy link
Copy Markdown

Fixes #1619 by gracefully catching database.ErrNotFound during snapshot loading in apiSnapshotsList when snapshots are concurrently deleted during async operations.

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.

Missing lock GET /api/snapshots when DELETE /api/snapshots is running in async mode

1 participant