Skip to content

Commit

Permalink
receive: ignore no storeAPIs error if no stores
Browse files Browse the repository at this point in the history
  • Loading branch information
junotx committed Dec 2, 2022
1 parent 04106d7 commit 3ba2b61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/store/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ func (s *ProxyStore) Series(originalRequest *storepb.SeriesRequest, srv storepb.
}

if len(stores) == 0 {
if s.component.ToProto() == storepb.StoreType_RECEIVE {
return nil
}
err := errors.New("No StoreAPIs matched for this query")
level.Warn(reqLogger).Log("err", err, "stores", strings.Join(storeDebugMsgs, ";"))
if sendErr := srv.Send(storepb.NewWarnSeriesResponse(err)); sendErr != nil {
Expand Down

0 comments on commit 3ba2b61

Please sign in to comment.