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 dd33fc0c76
commit eeb25bc4a5
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -315,12 +315,10 @@ func (rrc *rollupResultCache) GetSeries(qt *querytracer.Tracer, ec *EvalConfig,
i++
}
if i == len(timestamps) {
// no matches.
qt.Printf("no datapoints found in the cached series on the given timeRange")
return nil, 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")
return nil, ec.Start
}
@ -331,7 +329,7 @@ func (rrc *rollupResultCache) GetSeries(qt *querytracer.Tracer, ec *EvalConfig,
}
j++
if j <= i {
// no matches.
qt.Printf("no matching samples for the given timeRange")
return nil, ec.Start
}