Skip to content

Commit efe1c52

Browse files
authored
Ignore 'The specified blob does not exist' error (#99)
2 parents 1fb26ed + cd6b09d commit efe1c52

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/store/proxy.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,9 @@ func (s *ProxyStore) Series(originalRequest *storepb.SeriesRequest, srv storepb.
430430
// Don't have group/replica keys here, so we can't attribute the warning to a specific store.
431431
s.metrics.storeFailureCount.WithLabelValues("", "").Inc()
432432
if r.PartialResponseStrategy == storepb.PartialResponseStrategy_GROUP_REPLICA {
433-
if strings.Contains(resp.GetWarning(), "The specified key does not exist") {
434-
level.Warn(s.logger).Log("msg", "Ignore 'the specified key does not exist' error from Store")
433+
// The first error message is from AWS S3 and the second one is from Azure Blob Storage.
434+
if strings.Contains(resp.GetWarning(), "The specified key does not exist") || strings.Contains(resp.GetWarning(), "The specified blob does not exist") {
435+
level.Warn(s.logger).Log("msg", "Ignore 'the specified key/blob does not exist' error from Store")
435436
// Ignore this error for now because we know the missing block file is already deleted by compactor.
436437
// There is no other reason for this error to occur.
437438
s.metrics.missingBlockFileErrorCount.Inc()

0 commit comments

Comments
 (0)