logstash-plugins / logstash-input-azure_event_hubs

Logstash input for consuming events from Azure Event Hubs
Apache License 2.0
18 stars 28 forks source link

Plugin should fail with a configuration error is the number of threads is less than 2 #77

Open robbavey opened 2 years ago

robbavey commented 2 years ago

As described in this issue, starting the plugin with a thread count less than 2 is problematic, and should be explicitly disallowed.

When setting the number of threads to 1, the plugin appears to be working correctly, but will not process any events from any event hubs.

We should explicitly raise a ConfigurationError when the number of thread is set to less than 2 and prevent the plugin from starting