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

Plugin complains that EventHub name does not meet requirements when storage container has an underscore #22

Open
mbrancato opened this issue Nov 24, 2018 · 1 comment

Comments

@mbrancato
Copy link

The plugin will fail and provide the following error when the storage_container value does not conform to an EventHub name.

The error will look like:

 {:event_hub_name=>"valid-eventhub-name", :exception=>java.lang.IllegalArgumentException: EventHub names must conform to the following rules to be able to use it with EventProcessorHost: Must start with a letter or number, and can contain only letters, numbers, and the dash (-) character. Every dash (-) character must be immediately preceded and followed by a letter or number; consecutive dashes are not permitted in container names. All letters in a container name must be lowercase. Must be from 3 to 63 characters long., :backtrace=>["com.microsoft.azure.eventprocessorhost.AzureStorageCheckpointLeaseManager.initialize(com/microsoft/azure/eventprocessorhost/AzureStorageCheckpointLeaseManager.java:112)", "com.microsoft.azure.eventprocessorhost.EventProcessorHost.registerEventProcessorFactory(com/microsoft/azure/eventprocessorhost/EventProcessorHost.java:464)", "java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)", "org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:423)", "org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:290)", "usr.share.logstash.vendor.bundle.jruby.$2_dot_3_dot_0.gems.logstash_minus_input_minus_azure_event_hubs_minus_1_dot_0_dot_4.lib.logstash.inputs.azure_event_hubs.block in run(/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-azure_event_hubs-1.0.4/lib/logstash/inputs/azure_event_hubs.rb:430)", "org.jruby.RubyProc.call(org/jruby/RubyProc.java:289)"...

While the same rules apply to blob containers, the error is saying (and showing) the valid EventHub name, not the container name.

@jdieguez89
Copy link

Any update on this issue?

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