Skip to content

Conversation

@andrewvc
Copy link
Contributor

@andrewvc andrewvc commented Aug 8, 2016

Before workers did not cleanly shutdown resulting in a potential thread leak.

Also includes the patches in #80 , it makes more sense to merge these together as this patch includes spces.

rescue Exception => ex
@logger.error('upload_worker unhandled exception', :ex => ex, :backtrace => ex.backtrace)
raise LogStash::Error, 'S3: uploader thread exited unexpectedly'
end
Copy link
Contributor

Choose a reason for hiding this comment

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

In the #upload_worker method we are dealing with the exception, I don't think we need to handle them in this one too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! I didn't realize that stud task worked this way :) Will remove this block.

@andrewvc andrewvc force-pushed the fix_close_behavior branch 2 times, most recently from 4eaccf0 to f9aa0e5 Compare August 8, 2016 18:15

case file
when LogStash::ShutdownEvent
if file.is_a? LogStash::ShutdownEvent
Copy link
Contributor

Choose a reason for hiding this comment

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

Oops, I missed that in the first review, I think we should compare with the value of LogStash::SHUTDOWN instead of the class type.

@ph
Copy link
Contributor

ph commented Aug 8, 2016

Small comment, address it and LGTM to merge.

Make sure we rebase off master since there is conflict in this PR.

@andrewvc andrewvc force-pushed the fix_close_behavior branch from f9aa0e5 to d19c34a Compare August 8, 2016 18:19
@andrewvc andrewvc force-pushed the fix_close_behavior branch from d19c34a to 9cc32e6 Compare August 8, 2016 18:21
@elasticsearch-bot
Copy link

Andrew Cholakian merged this into the following branches!

Branch Commits
master c594f18, f7b75da

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.

4 participants