Skip to content

Conversation

kolesnikovae
Copy link
Collaborator

I discovered a panic in the compaction scheduler stats collector. The issue is that the scheduler queue may have gaps in levels – this is a completely valid case that wasn’t taken into account:

github.com/grafana/pyroscope/pkg/experiment/metastore/compaction/scheduler.(*statsCollector).collectStats(0xc00090f740, 0xc0009c3f50)
/home/runner/work/pyroscope/pyroscope/pkg/experiment/metastore/compaction/scheduler/metrics.go:85 +0x185
/home/runner/work/pyroscope/pyroscope/pkg/experiment/metastore/compaction/scheduler/metrics.go:118 +0x7b

Copy link
Contributor

@simonswine simonswine left a comment

Choose a reason for hiding this comment

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

LGTM

@kolesnikovae kolesnikovae marked this pull request as ready for review March 12, 2025 05:15
@kolesnikovae kolesnikovae requested a review from a team as a code owner March 12, 2025 05:15
@kolesnikovae kolesnikovae merged commit 7592bbb into main Mar 12, 2025
21 checks passed
@kolesnikovae kolesnikovae deleted the fix/scheduler-collector-panics branch March 12, 2025 05:17
shelldandy pushed a commit to shelldandy/pyroscope that referenced this pull request Mar 14, 2025
* fix(v2): scheduler metrics collector panics

* fix(v2): add scheduler metrics collector test
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