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

Deadlock when threads < number of event hubs + 1 #16

Open
jakelandis opened this issue Aug 2, 2018 · 1 comment
Open

Deadlock when threads < number of event hubs + 1 #16

jakelandis opened this issue Aug 2, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@jakelandis
Copy link
Contributor

If you configure multiple events without changing the thread configuration, this plugin can deadlock. The plugin requires the usage of least 2 threads (hard coded), and is the result of observation of the underlying library when reading a single event hub.

The default min number of threads needs to be changed from default of 4 with a hard coded min of 2, to a default and min = the number of configured event hubs + 1. For example, if you are reading 7 event hubs, you will need 8 threads.

This bug only effects when reading from 3 or more event hubs without changing the default threads. The work around is to specify the threads configuration option to ensure it is equal to or greater then event hubs + 1.

@jakelandis jakelandis added the bug Something isn't working label Aug 2, 2018
@redNixon
Copy link

The default min number of threads needs to be changed from default of 4 with a hard coded min of 2

I can confirm that 1 thread should be kicked out as a config error and will cause logstash to go silent without throwing any errors that point to any issue or the cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants