Skip to content

Commit 6a2f288

Browse files
committed
Store-gateway: Handle index read error properly
Fixes #2958
1 parent ae1f497 commit 6a2f288

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎pkg/storegateway/bucket_index_metadata_fetcher.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ func (f *BucketIndexMetadataFetcher) Fetch(ctx context.Context) (metas map[ulid.
103103

104104
return f.fallbackFetch(ctx)
105105
}
106+
if err != nil {
107+
return nil, nil, err
108+
}
106109

107110
// check if index is older than 1 hour, fallback to metafetcher
108111
if time.Unix(idx.UpdatedAt, 0).Before(start.Add(-1 * time.Hour)) {

0 commit comments

Comments
 (0)