Skip to content

Commit 218024d

Browse files
authored
Supress counting not-found as an error when reading alertmanager state. (cortexproject#4156)
This error is expected when a new user is configured and has not persisted any state yet, or if an alertmanager is being transitioned from non-sharding to sharding operation. Signed-off-by: Steve Simpson <steve.simpson@grafana.com>
1 parent e092775 commit 218024d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/alertmanager/alertstore/bucketclient/bucket_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,5 +192,5 @@ func (s *BucketAlertStore) getUserBucket(userID string) objstore.Bucket {
192192
}
193193

194194
func (s *BucketAlertStore) getAlertmanagerUserBucket(userID string) objstore.Bucket {
195-
return bucket.NewUserBucketClient(userID, s.amBucket, s.cfgProvider)
195+
return bucket.NewUserBucketClient(userID, s.amBucket, s.cfgProvider).WithExpectedErrs(s.amBucket.IsObjNotFoundErr)
196196
}

0 commit comments

Comments
 (0)