app/vmselect/promql: add missing trace message in rollupResultCache.GetSeries()

This commit is contained in:
Aliaksandr Valialkin 2023-11-02 09:17:13 +01:00
parent 44227c0287
commit 7fc5178a4b
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -269,12 +269,10 @@ func (rrc *rollupResultCache) GetSeries(qt *querytracer.Tracer, ec *EvalConfig,
i++ i++
} }
if i == len(timestamps) { if i == len(timestamps) {
// no matches.
qt.Printf("no datapoints found in the cached series on the given timeRange") qt.Printf("no datapoints found in the cached series on the given timeRange")
return nil, ec.Start return nil, ec.Start
} }
if timestamps[i] != ec.Start { if timestamps[i] != ec.Start {
// The cached range doesn't cover the requested range.
qt.Printf("cached series don't cover the given timeRange") qt.Printf("cached series don't cover the given timeRange")
return nil, ec.Start return nil, ec.Start
} }
@ -285,7 +283,7 @@ func (rrc *rollupResultCache) GetSeries(qt *querytracer.Tracer, ec *EvalConfig,
} }
j++ j++
if j <= i { if j <= i {
// no matches. qt.Printf("no matching samples for the given timeRange")
return nil, ec.Start return nil, ec.Start
} }