Florian Boucault

Results 33 comments of Florian Boucault

I believe that the following query, a little simpler perhaps, exhibits the same issue: `groupByTags(divideSeriesLists(seriesByTag('name=random1'), seriesByTag('name=random2')), 'sum', 'name')` ![image](https://user-images.githubusercontent.com/11150914/99133660-0bddf480-261b-11eb-88a9-e546b66ecbdf.png)

https://github.com/grafana/metrictank/pull/1897 might fix it, if not @robert-milan has another branch that should and will do a PR for

Could not figure out the cause yet.

I was able to reproduce it with query `diffSeries(summarize(groupByNode(stats.*.counters.statsd.metrics_received.count, 2, 'sum'), '1min', 'sum', false), summarize(timeShift(groupByNode(stats.*.counters.statsd.metrics_received.count, 2, 'sum'), '1d'), '1min', 'sum', false))` ``` PANIC: runtime error: index out of range [60]...

Even simpler reproduction query: `diffSeries(SINGLE_SERIES, summarize(timeShift(SINGLE_SERIES, '-1h'), '1min'))` Also breaks with `sumSeries`

Panic does not always happen, only with some time ranges.

`diffSeries(summarize(metrictank.stats.docker-env.default.tank.persist.values.rate32, '1min'), summarize(timeShift(metrictank.stats.docker-env.default.tank.persist.values.count32, '-1min'), '1min'))` recreates the issue. `summarize(metrictank.stats.docker-env.default.tank.persist.values.count32, '1min')` produces 2 data points `summarize(timeShift(metrictank.stats.docker-env.default.tank.persist.values.count32, '-1min'), '1min')` produces 3 data points

> `diffSeries(summarize(metrictank.stats.docker-env.default.tank.persist.values.rate32, '1min'), summarize(timeShift(metrictank.stats.docker-env.default.tank.persist.values.count32, '-1min'), '1min'))` recreates the issue. reversing the arguments to `diffSeries` and the panic seems gone

Series showing the issue with `from=1604708261266&to=1604708992552` ![image](https://user-images.githubusercontent.com/11150914/98426800-9a41fb80-209a-11eb-96a1-b5629e4501b9.png)