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

in_tail: Fix rotation related resource leak. fix #1941 #2105

Merged
merged 2 commits into from
Aug 20, 2018

Conversation

repeatedly
Copy link
Member

Signed-off-by: Masahiro Nakagawa [email protected]

# If this has a problem with large number of files, use @_event_loop directly.
checker = ->() { true }
detacher = ->(watcher) { event_loop_detach(watcher) }
timer = Fluent::PluginHelper::Timer::TimerWatcher.new(:closer, @rotate_wait, false, log, checker, detacher) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you extract timer_execute?
The above comment does not describe the reason to extract timer_execute.

I think we should create another PR for extracting timer_execute and use @event_loop_directly.

BTW, how about adding TODO: to the above comment?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, I forgot to back to timer_execute implementation.
Fix soon.

Signed-off-by: Masahiro Nakagawa <[email protected]>
@repeatedly
Copy link
Member Author

If no problem, I will merge this patch and release rc version for testing.

Copy link
Contributor

@cosmo0920 cosmo0920 left a comment

Choose a reason for hiding this comment

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

Looks reasonable for me. 👍

@repeatedly repeatedly merged commit 1d7e09b into master Aug 20, 2018
@repeatedly repeatedly deleted the fix-in_tail-resource-leak branch August 23, 2018 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants