Skip to content

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

Merged
jsoriano merged 2 commits intoelastic:6.7from
jsoriano:backport_12125_6.7
May 10, 2019
Merged

Cherry-pick #12125 to 6.7: Fix goroutine leak on initialization failures of log input#12145
jsoriano merged 2 commits intoelastic:6.7from
jsoriano:backport_12125_6.7

Conversation

@jsoriano
Copy link
Copy Markdown
Member

@jsoriano jsoriano commented May 9, 2019

Cherry-pick of PR #12125 to 6.7 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.

…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_6.7 branch from f0b5784 to 3165d11 Compare May 9, 2019 14:44
@jsoriano
Copy link
Copy Markdown
Member Author

Failing tests are related to #12066

@jsoriano jsoriano merged commit 70690b6 into elastic:6.7 May 10, 2019
@jsoriano jsoriano deleted the backport_12125_6.7 branch May 10, 2019 17:04
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…2125) (elastic#12145)

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