Skip to content

Commit

Permalink
Ignore 'The specified blob does not exist' error
Browse files Browse the repository at this point in the history
  • Loading branch information
hczhu-db committed Nov 13, 2024
1 parent 3756f5c commit ca3b7a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/store/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,10 @@ func (s *ProxyStore) Series(originalRequest *storepb.SeriesRequest, srv storepb.
// Don't have group/replica keys here, so we can't attribute the warning to a specific store.
s.metrics.storeFailureCount.WithLabelValues("", "").Inc()
if r.PartialResponseStrategy == storepb.PartialResponseStrategy_GROUP_REPLICA {
if strings.Contains(resp.GetWarning(), "The specified key does not exist") {
level.Warn(s.logger).Log("msg", "Ignore 'the specified key does not exist' error from Store")
// The first error message is from AWS S3 and the second one is from Azure Blob Storage.
if strings.Contains(resp.GetWarning(), "The specified key does not exist")
|| strings.Contains(resp.GetWarning(), "The specified blob does not exist") {

Check failure on line 435 in pkg/store/proxy.go

View workflow job for this annotation

GitHub Actions / Go build with -tags=stringlabels

syntax error: unexpected ||, expected expression

Check failure on line 435 in pkg/store/proxy.go

View workflow job for this annotation

GitHub Actions / Go build for different platforms

syntax error: unexpected ||, expected expression

Check failure on line 435 in pkg/store/proxy.go

View workflow job for this annotation

GitHub Actions / Linters (Static Analysis) for Go

expected operand, found '||'

Check failure on line 435 in pkg/store/proxy.go

View workflow job for this annotation

GitHub Actions / Thanos unit tests

syntax error: unexpected ||, expected expression
level.Warn(s.logger).Log("msg", "Ignore 'the specified key/blob does not exist' error from Store")
// Ignore this error for now because we know the missing block file is already deleted by compactor.
// There is no other reason for this error to occur.
s.metrics.missingBlockFileErrorCount.Inc()
Expand Down

0 comments on commit ca3b7a3

Please sign in to comment.