-
Notifications
You must be signed in to change notification settings - Fork 39
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
Refactor the shutdown #19
Conversation
Thread.abort_on_exception = true | ||
describe LogStash::Inputs::Gelf do | ||
context "when interrupting the plugin" do | ||
let(:port) { "12333" } |
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.
unless we randomize this we'll probably have issues when jenkins tests the multiple jvms in parallel
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.
good point, changing it.
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.
and wth I used a string here.
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.
yay! doing rand(1024...65532)
I guess would be the most you need :P
there might be some race condition happening here, I get the following every 1 in 5 or 6
|
@jsvd looking at it, I guess we have it for a while. ;) |
I can reproduce it with your seed. <3 |
@jsvd it was in a middle of a crash, I have changed the code to use |
end | ||
finished | ||
def stop | ||
super |
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.
super is no longer needed
Weird, non deterministic errors are back, investigating. |
ready for another round of review @jsvd |
|
||
describe "inputs/gelf" do | ||
Thread.abort_on_exception = true |
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.
is this really needed?
Minor comment, otherwise LGTM. squash and merge 🐑 it |
This PR introduces the changes needed to follow the new shutdown semantic, it also remove the gelf as a runtime dependencies and move it as a development dependency since its only used in the tests. Fixes logstash-plugins#17
7c1e3e2
to
134965d
Compare
Merged sucessfully into master! |
This PR introduces the changes needed to follow the new shutdown
semantic, it also remove the gelf as a runtime dependencies and move it
as a development dependency since its only used in the tests.
Fixes #17