Skip to content

Fix err bucket not found#652

Open
prarit wants to merge 1 commit into
aquasecurity:mainfrom
prarit:fix_ErrBucketNotFound
Open

Fix err bucket not found#652
prarit wants to merge 1 commit into
aquasecurity:mainfrom
prarit:fix_ErrBucketNotFound

Conversation

@prarit

@prarit prarit commented Mar 23, 2026

Copy link
Copy Markdown
fix(db): Ignore missing buckets during cleanup

The cleanup deletes all buckets after a build completes.  When building
with --only-update for a set of sources, some of the buckets in the
overall set are never created because the sources that populate them are
skipped.  Then cleanup fails with "bucket not found" even though the data
update completed.

Ignore bolt.ErrBucketNotFound.  This is safe to do since a bucket that
doesn't exist doesn't have to be cleaned up.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>

@prarit prarit requested a review from knqyf263 as a code owner March 23, 2026 13:23
The cleanup deletes all buckets after a build completes.  When building
with --only-update for a set of sources, some of the buckets in the
overall set are never created because the sources that populate them are
skipped.  Then cleanup fails with "bucket not found" even though the data
update completed.

Ignore bolt.ErrBucketNotFound.  This is safe to do since a bucket that
doesn't exist doesn't have to be cleaned up.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
@prarit prarit force-pushed the fix_ErrBucketNotFound branch from 3aa7000 to cded8a8 Compare March 23, 2026 13:45
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.

1 participant