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

Pyroscope: Fix backend panic when querying out of bounds #76053

Merged
merged 2 commits into from
Oct 6, 2023

Conversation

aocenas
Copy link
Member

@aocenas aocenas commented Oct 5, 2023

Fixes: #75962

Pyroscope returns different response when querying time range without data than when no data matches the label selector which wasn't handled properly and resulted in nil pointer panic.

@aocenas aocenas requested a review from a team as a code owner October 5, 2023 14:44
@aocenas aocenas added type/bug area/backend add to changelog no-backport Skip backport of PR datasource/grafana-pyroscope Grafana pyroscope datasource (previously Phlare) labels Oct 5, 2023
@grafana-delivery-bot grafana-delivery-bot bot added this to the 10.2.x milestone Oct 5, 2023
Copy link
Contributor

@joey-grafana joey-grafana left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Behaves slightly different depending on the query range but no big issue. I would say both have no data.

In range, bogus name
Screenshot 2023-10-05 at 16 56 05

Out of range, bogus name
Screenshot 2023-10-05 at 16 55 52

@aocenas
Copy link
Member Author

aocenas commented Oct 6, 2023

yeah not sure how much it makes sense to align these it's probably not ideal empty state but we can improve that later I hope this will be a bit of an edge case most times.

@aocenas aocenas merged commit 1cbae72 into main Oct 6, 2023
14 checks passed
@aocenas aocenas deleted the aocenas/pyroscope/fix-panic-on-empty-message branch October 6, 2023 13:03
@zerok zerok modified the milestones: 10.2.x, 10.2.0 Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add to changelog area/backend datasource/grafana-pyroscope Grafana pyroscope datasource (previously Phlare) no-backport Skip backport of PR type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Explore/Pyroscope: Empty result in Pyroscope explore crashes grafana
3 participants