Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug in range vector skipping data. #2058

Merged
merged 1 commit into from
May 8, 2020

Conversation

cyriltovena
Copy link
Contributor

@cyriltovena cyriltovena commented May 8, 2020

It seems that this bug was in there since day 1 of range vector aggregations. I found it while doing test for the new average in an experimental branch and with an average it shows more than with a count.

Basically the bug was removing one overlapping point in each step for all next steps. This would cause space in graph growing at the end.

I was staring at the code for a while until I realized, this portion of the code was always removing the first point whether or not there were overlapping point.

Signed-off-by: Cyril Tovena cyril.tovena@gmail.com

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Copy link
Member

@owen-d owen-d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great catch

@owen-d owen-d merged commit fcb4c76 into grafana:master May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants