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

Percolate failure #2

Open
paulkeogh opened this issue Dec 22, 2016 · 4 comments
Open

Percolate failure #2

paulkeogh opened this issue Dec 22, 2016 · 4 comments

Comments

@paulkeogh
Copy link

Hi,

Firstly thanks for a great plugin.

I think there is a threading issue. When I run in Logstash with a worker count of 1, all is fine. When I run with a worker count of 4, I get the following error;

Failed to percolate event {:id=>nil, :target=>nil, :event=>#<LogStash::Event:0x445bf3f8 @metadata_accessors=#<LogStash::Util::Accessors:0x7d7b28ce @store={}, @lut={}>, @cancelled=false, @DaTa={"@timestamp"=>"2016-12-22T11:26:41.710Z", "@Version"=>"1", "tags"=>["multiline", "anonymous"], "type"=>"packet", "fingerprint"=>"e65fc68b9c85217fb92ff0be4c5dec189576b417", "Clear Text Message Payload"=>"%{User Data}"}, @metadata={}, @accessors=#<LogStash::Util::Accessors:0x51cefd5 @store={"@timestamp"=>"2016-12-22T11:26:41.710Z", "@Version"=>"1", "tags"=>["multiline", "anonymous"], "type"=>"packet", "fingerprint"=>"e65fc68b9c85217fb92ff0be4c5dec189576b417", "Clear Text Message Payload"=>"%{User Data}"}, @lut={"tags"=>[{"@timestamp"=>"2016-12-22T11:26:41.710Z", "@Version"=>"1", "tags"=>["multiline", "anonymous"], "type"=>"packet", "fingerprint"=>"e65fc68b9c85217fb92ff0be4c5dec189576b417", "Clear Text Message Payload"=>"%{User Data}"}, "tags"], "[tags]"=>[{"@timestamp"=>"2016-12-22T11:26:41.710Z", "@Version"=>"1", "tags"=>["multiline", "anonymous"], "type"=>"packet", "fingerprint"=>"e65fc68b9c85217fb92ff0be4c5dec189576b417", "Clear Text Message Payload"=>"%{User Data}"}, "tags"], "[Clear Text Message Payload]"=>[{"@timestamp"=>"2016-12-22T11:26:41.710Z", "@Version"=>"1", "tags"=>["multiline", "anonymous"], "type"=>"packet", "fingerprint"=>"e65fc68b9c85217fb92ff0be4c5dec189576b417", "Clear Text Message Payload"=>"%{User Data}"}, "Clear Text Message Payload"]}>>, :error=>#<Elasticsearch::Transport::Transport::Error: Cannot get new connection from pool.>, :level=>:warn}

I am wondering if the underlying code is thread safe ?

@consulthys
Copy link
Owner

consulthys commented Dec 22, 2016

Thanks for reporting this. Which version of Logstash and ES are you using?

@paulkeogh
Copy link
Author

Logstash 2.4 and elastic 2.3.3

I was running a load test on LS at ~ 400 tps when the error manifests itself.

@consulthys
Copy link
Owner

Ok, it seems more related to the underlying ruby client. It's conceptually the same as for the logstash-filter-elasticsearch plugin, which uses the same ruby client. I'll check if I can reproduce this.

@consulthys
Copy link
Owner

Also there's a good discussion about the thread safety of the underlying ruby client.

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

No branches or pull requests

2 participants