logstash-plugins / logstash-input-azure_event_hubs

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

Workaround to avoid errors that cause plugin to crash on Java 11 #38

Closed robbavey closed 5 years ago

robbavey commented 5 years ago

When running this plugin under Java 11, calls to event_processor_host.getHostContext.getEventHubPath can fail with org.jruby.exceptions.NoMethodError: (NoMethodError) undefined methodgetEventHubPath'`

This can be avoided by removing the calls to this method, which is only used in logging calls and is unnecessary - the value is the same as that held in the event_hub_name

robbavey commented 5 years ago

Thanks @jsvd!

elasticsearch-bot commented 5 years ago

Rob Bavey merged this into the following branches!

Branch Commits
master 5e467fa6ac9f6187f69635a6cbd1d216e7f0ed5c, 36f9e204625ef1b3f8dc746c95ee9a3c1b756421, 7859b02b7949fbaec573d977ab4ccd2c99a94a75