diff --git a/pkg/storage/stores/shipper/bloomshipper/store.go b/pkg/storage/stores/shipper/bloomshipper/store.go index e79db620627ef..6c0e51cc9fcbb 100644 --- a/pkg/storage/stores/shipper/bloomshipper/store.go +++ b/pkg/storage/stores/shipper/bloomshipper/store.go @@ -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 {