You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your question request related to a specific component?
vmselect
Describe the question in detail
According to this issue(#1526),
The code became as follows. but I don't know the difference between them, they looks the same.
func rollupDefault(rfa *rollupFuncArg) float64 {
values := rfa.values
if len(values) == 0 {
// Do not take into account rfa.prevValue, since it may lead
// to inconsistent results comparing to Prometheus on broken time series
// with irregular data points.
return nan
}
// Intentionally do not skip the possible last Prometheus staleness mark.
// See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1526 .
return values[len(values)-1]
}
func rollupLast(rfa *rollupFuncArg) float64 {
values := rfa.values
if len(values) == 0 {
// Do not take into account rfa.prevValue, since it may lead
// to inconsistent results comparing to Prometheus on broken time series
// with irregular data points.
return nan
}
return values[len(values)-1]
}
So why two same functions instead of one before the commit for the 1526 issue
Is your question request related to a specific component?
vmselect
Describe the question in detail
According to this issue(#1526),
The code became as follows. but I don't know the difference between them, they looks the same.
So why two same functions instead of one before the commit for the 1526 issue
Troubleshooting docs
The text was updated successfully, but these errors were encountered: