OpenTSDB / opentsdb

A scalable, distributed Time Series Database.
http://opentsdb.net
GNU Lesser General Public License v2.1
5k stars 1.25k forks source link

Fixed incorrect result of Count Downsampler when setting Rollup data #2258

Closed funamoto closed 1 year ago

funamoto commented 2 years ago

Issue

When using Count Downsampler in an environment where Rollup data is pre-aggregated, incorrect results are returned.

In the case of Raw data, the number of valid data that existed during the time of the Downsample target is being counted. This implementation is considered correct.

However, for Rollup data, this value should be output since pre-aggregated data already exists.

The existing implementation does not yield the correct aggregate data because Count Downsample is done in the same process as Raw data, even in cases where Rollup data is used.

Resolution

When Count Downsample is used and Rollup data is used, fixed to output the value of pre-aggregated data.