question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing support for multiple EventHubs in 1.1.0.RC5 (#508)

See original GitHub issue

Missing support for multiple EventHubs in 1.1.0.RC5

I tried to backport to 1.1.0.RC5 the fix that was applied to #508 by excluding the EventHubBinderConfiguration (via @SpringBootApplication(exclude=EventHubBinderConfiguration.class) and extending it, to include the following:

@Import({AzureEventHubAutoConfiguration.class, AzureEnvironmentAutoConfiguration.class})

as shown in commit 449a19f.

Here you can find the properties I’ve tried to use to make it so that the consumer bound to “my-eh2-destination” would consume messages coming from a 2nd EventHub (namely, my-namespace2), different than the default my application uses for other bindings (default-namespace).

spring:
  cloud:
    azure:
      eventhub:
        enabled: true
        namespace: default-namespace
        checkpoint-storage-account: my-storage-account
      credential-file-path: my.azureauth
      resource-group: my-resource-group
      region: West US
    stream:
      default-binder: eventhub
      binders:
        eventhub2:
          type: eventhub
          spring:
            cloud:
              azure:
                eventhub:
                  enabled: true
                  connection-string: 'my-connection-string-2'
                  namespace: my-namespace-2
                  checkpoint-storage-account: my-storage-account
                  checkpoint-access-key: 'my-access-key'
                credential-file-path: my.azureauth
                resource-group: my-resource-group
                region: West US         
          environment:
            spring:
              cloud:
                azure:
                  eventhub:
                    enabled: true
                    connection-string: 'my-connection-string-2'
                    namespace: my-namespace-2
                    checkpoint-storage-account: my-storage-account
                    checkpoint-access-key: 'my-access-key'
                  credential-file-path: my.azureauth
                  resource-group: my-resource-group
                  region: West US
      bindings:
        input:
          contentType: application/*+avro
          destination: my-eh2-destination
          group: $Default
          binder: eventhub2

(as you can see I’ve put a lot of extra properties in the mix, but it didn’t help 😃 )

I’ve tested my Spring Boot Application with this setup and, even though the application would successfully terminate the bootstrapping process, it still didn’t seem to connect to the 2nd EventHub at all (the consumer still consumed messages coming from the first EventHub through my-eh2-destination, even though the binding was linked to the binder that was configured for the 2nd EventHub).

Questions

  • Is there something else I’m missing to backport #508 into 1.1.0.RC5, that I’m not aware of?
  • Is there something I’m doing wrong?
  • Is there an expected date for a release that includes the #508 fix?

Your Environment

  • Version used: 1.1.0.RC5
  • Operating System and version (desktop or mobile): Windows 10 Pro 64-bit
  • SDK version: JDK 8u74

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
olialthcommented, Oct 7, 2019

Could you publish a snapshot build as I would need this feature desperately… Many thanks, Oliver

0reactions
olialthcommented, Oct 7, 2019

Aaah, thanks for that. I added the repo, and now the startup of the App looks promising, connection to two different event hub namespaces was established. I will give feedback after doing some real world tests.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Patch to support uboot logo keep from uboot to ker... - Page 2
1) Support HDMI, LVDS and LCD output in UBoot. ... Copy the two patch files to Android kernel_imx and uboot-imx folder and apply...
Read more >
Hands-On Blockchain with Hyperledger
Enterprise support. Use case-driven pluggability choices. Shared ledger technology. Consensus. Crypto algorithms and encryption technology.
Read more >
dot_filenames.txt - Index of /
Support.v4.19.1.0 .cnf.template .set_port.sh . ... Image.png.txt .hd123.devops .cc-msvc-src-cxx-E.stdout.txt .rsp-missing.result.txt .any.
Read more >
power on by keyboard - OSCHINA - 中文开源技术交流社区
Keyboard Symbols for HTML This chart is a list of symbols related to the Apple keyboard. Each symbol has a Unicode identifier and...
Read more >
Open Source Used In cnBR 20.2- 06042020 - Cisco
1.707 libapache2-mod-authz-unixgroup 1.1.0-0.1 ... 1.1788 azure-eventhubs 2.2.0 ... PCRE is a library of functions to support regular expressions whose ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found