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

Do not insert missing point when sharding #5444

Merged
merged 1 commit into from
Feb 23, 2022

Conversation

cyriltovena
Copy link
Contributor

@cyriltovena cyriltovena commented Feb 22, 2022

What this PR does / why we need it:

I recently runs into a problem with the query-frontend where the query wasn't the right result but the querier would return the right result.

Turns out this is due to querysharding, when doing sharding we actually insert missing 0 point when stepping on the results of each shards.

However this is wrong, zero during a min_over_time means something different, or even when dividing during a binary operations this can cause the creation of NaN.

The solution is simple we don't need to insert those points.

Which issue(s) this PR fixes:
Fixes #5438

Special notes for your reviewer:

Checklist

  • Documentation added
  • Tests updated
  • Add an entry in the CHANGELOG.md about the changes.

@cyriltovena cyriltovena requested a review from a team as a code owner February 22, 2022 15:14
@cyriltovena cyriltovena changed the title Do not insert point when missing when sharding Do not insert missing point when sharding Feb 22, 2022
@owen-d owen-d merged commit e3db267 into grafana:main Feb 23, 2022
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.

sum( rate/rate) returns empty vector
2 participants