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

Having multiple EventHub outputs doesn't work as expected #6

Closed
danielhertzman opened this issue Jul 1, 2019 · 2 comments
Closed
Assignees

Comments

@danielhertzman
Copy link

Hello!

We are using an Azure Function to receive and distinct each message based on a Property on the message. The message should then be sent out to two different EventHubs (which is set as output binding attributes) based on the Property.

Repro steps

Steps to reproduce the issue:

  1. Create an Azure Function that will trigger on EventHub message

  2. Output the messages further to two different EventHubs based on a message property on the EventData input.

Expected behavior

Expected behaviour is that these messages are being routed to each respective EventHub.

Actual behavior

The EventHub output as configured "first" in the Run() parameter is receiving all events.

Related information

As a proof of this issue, I'm providing you with an example project, containing the core routing functionality we are trying to implement.

It contains of an Azure Function that triggers on an EventHub and then sends them further using the IAsyncCollector. The project also contains two additional Azure Functions which is triggered on the two output EventHubs. The result is that only the first Azure Function is being triggered (the one called EH1Receiver)

Link to example project: https://github.com/danielhertzman/eventhub-trigger-example

@danielhertzman danielhertzman changed the title Having multiple EventHub outputs doesn't work Having multiple EventHub outputs doesn't work as expected Jul 1, 2019
@brettsam brettsam transferred this issue from Azure/azure-webjobs-sdk Jul 25, 2019
@brettsam brettsam added this to the Triaged milestone Jul 25, 2019
@brettsam
Copy link
Member

@alrod -- any idea on this one? Seems like a bug somewhere in how we set up the output bindings.

@alrod alrod self-assigned this Aug 1, 2019
@alrod alrod modified the milestones: Triaged, Functions Sprint 55 Aug 1, 2019
alrod added a commit to alrod/azure-functions-eventhubs-extension that referenced this issue Aug 1, 2019
@alrod
Copy link
Member

alrod commented Aug 5, 2019

414f0a5

@alrod alrod closed this as completed Aug 5, 2019
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

3 participants