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

Cherry-pick #12125 to 7.0: Fix goroutine leak on initialization failures of log input #12143

Merged
merged 2 commits into from
May 10, 2019

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented May 9, 2019

Cherry-pick of PR #12125 to 7.0 branch. Original message:

Detected on #12106, possibly related to #9302.

These outlets should be probably created on Run(), but it
cannot return an error. I'd fix it like this by now,
and would do further refactors on future PRs.

@jsoriano jsoriano requested a review from a team as a code owner May 9, 2019 14:41
…2125)

Outlets are created during log input initialization, and if it
fails they were never freed. Handle this case.

(cherry picked from commit f2473d2)
@jsoriano jsoriano force-pushed the backport_12125_7.0 branch from fd43f90 to 2acd206 Compare May 9, 2019 14:42
@jsoriano
Copy link
Member Author

jenkins, test this again

@jsoriano jsoriano merged commit d4d2ef3 into elastic:7.0 May 10, 2019
@jsoriano jsoriano deleted the backport_12125_7.0 branch May 10, 2019 16:58
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…2125) (elastic#12143)

Outlets are created during log input initialization, and if it
fails they were never freed. Handle this case.

(cherry picked from commit 99f8ded)
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