Skip to content

Conversation

charleskorn
Copy link
Contributor

If rate is used over a range of native histograms with both custom and exponential buckets, a panic can occur.

I've also modified the behaviour of the test scripting language to check for query errors before warnings: if the query failed to evaluate, it's more useful to see the failure rather than the fact that warnings were or weren't present.

Signed-off-by: Charles Korn <charles.korn@grafana.com>
…e` over native histograms with mix of custom and exponential buckets

Signed-off-by: Charles Korn <charles.korn@grafana.com>
@krajorama
Copy link
Member

Thank you. Related to #13494

@beorn7
Copy link
Member

beorn7 commented Aug 7, 2024

Also somewhat related: #14168

@beorn7 beorn7 requested review from beorn7 and krajorama and removed request for roidelapluie August 7, 2024 08:51
charleskorn added a commit to grafana/mimir that referenced this pull request Aug 8, 2024
…tions (#8924)

* Enable histogram test cases.

* Enable test cases we now support

* Emit warnings from `rate` and `sum` if a custom and exponential buckets are seen at the same timestamp, or if incompatible custom buckets are seen at the same timestamp

* Add changelog entry

# Conflicts:
#	CHANGELOG.md

* Address PR feedback: move custom bucket check earlier in `rate`

* Address PR feedback: clarify comments

* Address PR feedback: extend test case range to include samples after an ignored sample

* Skip `TestAnnotations` test case that fails on Prometheus' engine due to prometheus/prometheus#14609

* Skip test cases that fail on Prometheus' engine due to prometheus/prometheus#14611

* Fix failing test
Copy link
Member

@beorn7 beorn7 left a comment

Choose a reason for hiding this comment

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

Thank you.

@beorn7 beorn7 merged commit 41f8a02 into prometheus:main Aug 8, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants