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

Fixes merge of empty samples in pprof #3031

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Conversation

cyriltovena
Copy link
Contributor

Introduced in https://github.com/grafana/pyroscope/pull/3010/files#diff-1716fbe09b95462c58b96e3abdc3b60585159cad6f026e731598ca62859ea5e5R49

When we insert an empty profile we still would consider the next one as new and rewrite string from the original twice.

This has caused the pprof API to fail recently.

cc @bryanhuhta @grafakus

Sneaky one !

@cyriltovena cyriltovena requested a review from a team as a code owner February 27, 2024 06:50
Copy link
Collaborator

@kolesnikovae kolesnikovae left a comment

Choose a reason for hiding this comment

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

LGTM

Nice catch! Thank for fixing this

@cyriltovena cyriltovena merged commit aa403a7 into main Feb 27, 2024
19 checks passed
@cyriltovena cyriltovena deleted the bugfix/pprof-merge-empty branch February 27, 2024 07:19
kolesnikovae pushed a commit that referenced this pull request Feb 29, 2024
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.

None yet

2 participants