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

fix: discard invalid samples at read #3193

Merged
merged 4 commits into from
Apr 12, 2024
Merged

fix: discard invalid samples at read #3193

merged 4 commits into from
Apr 12, 2024

Conversation

kolesnikovae
Copy link
Collaborator

@kolesnikovae kolesnikovae commented Apr 11, 2024

It's been discovered that some of the persisted profiles may contain invalid samples (stack trace ID == 0). As an immediate fix, such samples should be discarded, as further processing does not expect "empty" stack traces. This has led to numerous cryptic failures (#3164 and #2377, for example).

We should also ensure that such profiles are discarded before they gets writtien to the block (see #3194)

@kolesnikovae kolesnikovae marked this pull request as ready for review April 11, 2024 03:45
@kolesnikovae kolesnikovae requested a review from a team as a code owner April 11, 2024 03:45
@kolesnikovae kolesnikovae marked this pull request as draft April 11, 2024 08:09
@kolesnikovae kolesnikovae marked this pull request as ready for review April 11, 2024 15:37
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

I have also found this path, where it probably would make sense to add a check too.:

for k, v := range m {

@kolesnikovae kolesnikovae merged commit ff97953 into main Apr 12, 2024
16 checks passed
@kolesnikovae kolesnikovae deleted the fix/invalid-samples branch April 12, 2024 10:20
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