mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-19 15:30:17 +00:00
lib/storage: correctly handle io.EOF error for pre-fetched metrics (#3946)
io.EOF shouldn't be returned from this function. It breaks all search API logic and may result in empty query results.
This commit is contained in:
parent
e9526e628d
commit
b6a1372d23
1 changed files with 1 additions and 1 deletions
|
@ -1245,7 +1245,7 @@ func (s *Storage) prefetchMetricNames(qt *querytracer.Tracer, tsids []TSID, dead
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil && err != io.EOF {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
qt.Printf("pre-fetch metric names for %d metric ids", len(metricIDs))
|
qt.Printf("pre-fetch metric names for %d metric ids", len(metricIDs))
|
||||||
|
|
Loading…
Reference in a new issue