Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle error
Browse files Browse the repository at this point in the history
salvacorts committed Mar 19, 2024
1 parent 390a778 commit 3103d28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/storage/stores/shipper/bloomshipper/store.go
Original file line number Diff line number Diff line change
@@ -145,6 +145,11 @@ func (b *bloomStoreEntry) UsersForPeriod(ctx context.Context, ts model.Time) ([]
)
list, _, err := b.objectClient.List(ctx, prefix, "")
if err != nil {
// If there is no table for the given time, we should return an empty list of tenants.
if b.objectClient.IsObjectNotFoundErr(err) {
return tenants, "", nil
}

return nil, "", fmt.Errorf("error listing tenants under prefix [%s]: %w", prefix, err)
}
for _, object := range list {

0 comments on commit 3103d28

Please sign in to comment.