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

pkg/parcacol: Support ingesting uncompressed pprof #2751

Merged
merged 2 commits into from
Mar 14, 2023
Merged

Conversation

brancz
Copy link
Member

@brancz brancz commented Mar 14, 2023

No description provided.

if err := r.Close(); err != nil {
return NormalizedWriteRawRequest{}, status.Errorf(codes.Internal, "failed to close gzip reader: %v", err)
if len(sample.RawProfile) >= 2 && sample.RawProfile[0] == 0x1f && sample.RawProfile[1] == 0x8b {
gz, err := gzip.NewReader(bytes.NewBuffer(sample.RawProfile))
Copy link
Member

Choose a reason for hiding this comment

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

Is this missing the defer gz.Close() now?

Copy link
Member Author

Choose a reason for hiding this comment

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

you're right!

@brancz
Copy link
Member Author

brancz commented Mar 14, 2023

I don't know why the job is not reporting but the arm64 job passed as well.

@brancz brancz merged commit ef2e377 into main Mar 14, 2023
@brancz brancz deleted the uncompressed branch March 14, 2023 12:09
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