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 divide by 0 bug in exemplar sharding calculations #3936

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

mdisibio
Copy link
Contributor

@mdisibio mdisibio commented Aug 5, 2024

What this PR does:
Fixes a divide-by-0 bug in the recently merged exemplar logic. For very small blocks or containing few traces, there could be a divide by 0 bug in the query-frontend when calculating the number of exemplars for a sub-request.

Which issue(s) this PR fixes:
Fixes n/a

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@mdisibio mdisibio merged commit 7dc8134 into grafana:main Aug 5, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants