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

Fix open file handler issue #2029

Merged
merged 1 commit into from
Jul 19, 2016
Merged

Conversation

ruflin
Copy link
Contributor

@ruflin ruflin commented Jul 13, 2016

Closes #2028


encoding, err = h.encoding(file)
// Closes file handler in case of follow up error
defer func() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@urso I used the "short" method here to only change the minimal lines of code.

@@ -33,6 +33,8 @@ https://github.com/elastic/beats/compare/v1.3.0...1.3[Check the HEAD diff]

*Filebeat*

- Fix open file handler issue {issue}2028[2028]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

close newly opened files faster on error. (file closing is backed by gc by default)

@urso
Copy link

urso commented Jul 19, 2016

LGTM

@tsg tsg merged commit be76f92 into elastic:1.3 Jul 19, 2016
@tsg tsg mentioned this pull request Jul 19, 2016
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants