Skip to content

Data sent to APM-Server can get corrupted if more than one log events are processed concurrently #308

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

Closed
lahsivjar opened this issue Sep 15, 2022 · 0 comments · Fixed by #309
Assignees
Labels
aws-λ-extension AWS Lambda Extension bug Something isn't working v8.5.0

Comments

@lahsivjar
Copy link
Contributor

  1. Metadata is created from the data agent sends as a slice of bytes by using bytes#Cut (ref)
  2. While processing the log events, we append the processed log event to the metadata slice (ref)

Given that appending to the metadata slice in 2 doesn't trigger a reallocation and 2 log events are being processed concurrently, it is possible for the data to get corrupted.

@github-actions github-actions bot added the aws-λ-extension AWS Lambda Extension label Sep 15, 2022
@lahsivjar lahsivjar assigned lahsivjar and unassigned lahsivjar Sep 15, 2022
@lahsivjar lahsivjar added bug Something isn't working v8.5.0 labels Sep 15, 2022
@lahsivjar lahsivjar self-assigned this Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws-λ-extension AWS Lambda Extension bug Something isn't working v8.5.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant