-
Notifications
You must be signed in to change notification settings - Fork 6
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
Make usage of the new stop semantics to properly shutdown the plugin #10
Conversation
interrupt test works for me 👍 one failure in another test though:
|
@pere - i think you need to pass a block to Stud.stoppable_sleep and not use the Stud.stop. Stud.stoppable_sleep(5) { stop? } |
….stop! method from the stop plugin method
HI, Thanks for testing this out man!
On Fri, Sep 18, 2015 at 1:27 PM João Duarte notifications@github.com
|
@@ -32,14 +32,15 @@ def register | |||
|
|||
public | |||
def run(output_queue) | |||
@current_thread = Thread.current |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious, why keep a reference to current thread?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a leftover 😞 will cleanup
Bon! |
Merged sucessfully into master! |
….stop! method from the stop plugin method Fixes #10
Implements
stop
to return fromrun
according to elastic/logstash#3210Depends on elastic/logstash-devutils#32 and elastic/logstash#3812
Fix #9