Remove ErrStreamMissing (#5234)

pull/5238/head
RangerCD 3 years ago committed by GitHub
parent 849f45ea8c
commit 4ee686c22c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      pkg/ingester/instance.go

@ -37,11 +37,6 @@ const (
queryBatchSampleSize = 512
)
// Errors returned on Query.
var (
ErrStreamMissing = errors.New("Stream missing")
)
var (
memoryStreams = promauto.NewGaugeVec(prometheus.GaugeOpts{
Namespace: "loki",
@ -571,7 +566,9 @@ outer:
for _, streamID := range ids {
stream, ok := i.streams.LoadByFP(streamID)
if !ok {
return ErrStreamMissing
// If a stream is missing here, it has already been flushed
// and is supposed to be picked up from storage by querier
continue
}
for _, filter := range filters {
if !filter.Matches(stream.labels.Get(filter.Name)) {

Loading…
Cancel
Save