Skip to content
New issue

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

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

Already on GitHub? # to your account

Metrics Summary: fix panic edge case #2738

Merged
merged 2 commits into from
Aug 1, 2023

Conversation

mdisibio
Copy link
Contributor

@mdisibio mdisibio commented Jul 31, 2023

What this PR does:
Fixes a panic for very large uint64s. This was seen in the wild and my best guess is its from calculating duration = endTime - startTime when endTime is less than startTime (leading to unsigned wrap-around). So this doesn't address the root cause, per se, but prevents the panic and bad data will be visible.

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 729a26f into grafana:main Aug 1, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants