We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The @codec is not threadsafe and we're one instance of it across threads here:
@codec
private def thread_runner(logstash_queue, consumer) Thread.new do begin unless @topics_pattern.nil? nooplistener = org.apache.kafka.clients.consumer.internals.NoOpConsumerRebalanceListener.new pattern = java.util.regex.Pattern.compile(@topics_pattern) consumer.subscribe(pattern, nooplistener) else consumer.subscribe(topics); end while !stop? records = consumer.poll(poll_timeout_ms) for record in records do @codec.decode(record.value.to_s) do |event|
we must clone the @codec once per thread like we do in tcp input for example to avoid concurrency issues.
The text was updated successfully, but these errors were encountered:
logstash-plugins#210 clone codec once per input thread since it is n…
332b98c
…ot threadsafe
4a006a5
#210 clone codec once per input thread since it is not threadsafe
83fd74a
Fixes #211
fixed in #211
Sorry, something went wrong.
original-brownbear
Successfully merging a pull request may close this issue.
The
@codec
is not threadsafe and we're one instance of it across threads here:we must clone the
@codec
once per thread like we do in tcp input for example to avoid concurrency issues.The text was updated successfully, but these errors were encountered: