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

[receiver/fluentforward] Fix memory leak #32363

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

crobert-1
Copy link
Member

Description:

This fixes a memory leak happening in the Fluent Forward receiver. time.Sleep was being called for a duration of 10 seconds, with no way to interrupt during shutdown. This updates the functionality to use a timer that can be stopped in the case of the context being cancelled.

This also enables goleak checks on the Fluent Forward receiver to help ensure no goroutines are being leaked, and adds a missing Shutdown call.

Link to tracking Issue:
#30438

Testing:
All existing tests are passing as well as added goleak checks.

@dmitryax dmitryax merged commit c07d1e6 into open-telemetry:main Apr 12, 2024
170 checks passed
@github-actions github-actions bot added this to the next release milestone Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants