Skip to content

Commit 27b0215

Browse files
committed
Ignore not found errors when compacting users
Signed-off-by: Alan Protasio <approtas@amazon.com>
1 parent dd4240d commit 27b0215

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/compactor/compactor.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,11 @@ func (c *Compactor) compactUserWithRetries(ctx context.Context, userID string) e
733733

734734
func (c *Compactor) compactUser(ctx context.Context, userID string) error {
735735
bucket := bucket.NewUserBucketClient(userID, c.bucketClient, c.cfgProvider)
736+
737+
if ib, ok := bucket.WithExpectedErrs(bucket.IsObjNotFoundErr).(objstore.InstrumentedBucket); ok {
738+
bucket = ib
739+
}
740+
736741
reg := prometheus.NewRegistry()
737742
defer c.syncerMetrics.gatherThanosSyncerMetrics(reg)
738743

0 commit comments

Comments
 (0)