Skip to content

Metrics Summary: fix panic edge case#2738

Merged
mdisibio merged 2 commits intografana:mainfrom
mdisibio:metrics-summary-bug
Aug 1, 2023
Merged

Metrics Summary: fix panic edge case#2738
mdisibio merged 2 commits intografana:mainfrom
mdisibio:metrics-summary-bug

Conversation

@mdisibio
Copy link
Copy Markdown
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
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.

3 participants