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

[6.2] Filebeat: Fix leak in log harvester (#6797) #7132

Merged
merged 1 commit into from
May 24, 2018

Conversation

adriansr
Copy link
Contributor

@adriansr adriansr commented May 18, 2018

This patch reorganizes a little bit how the log harvester works, so that suboutlets are only created when the harvester is ready to use them (inside Run()), instead of being passed during constructor.

This prevents a memory leak caused by some internal goroutines not stopping if the harvester Setup() fails, for example when files cannot be read.

Backport of #6829
Fixes #6797

This patch reorganizes a little bit how the log harvester works, so that
suboutlets are only created when the harvester is ready to use them
(inside Run()), instead of being passed during constructor.

This prevents a memory leak caused by some internal goroutines not
stopping if the harvester Setup() fails, for example when files cannot
be read.

Fixes elastic#6797
@adriansr adriansr force-pushed the backport/6797_6.2 branch from 5dac447 to 5e18456 Compare May 18, 2018 07:59
@adriansr adriansr changed the title Backport: Filebeat: Fix leak in log harvester (#6797) [6.2] Filebeat: Fix leak in log harvester (#6797) May 18, 2018
@adriansr adriansr added review and removed v6.2.5 labels May 18, 2018
@ph
Copy link
Contributor

ph commented May 24, 2018

LGTM

@ph ph merged commit 4b9c111 into elastic:6.2 May 24, 2018
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.

2 participants