-
Notifications
You must be signed in to change notification settings - Fork 201
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
Event Hubs Webjobs extension 4.2.0 fails with V4 function #2072
Comments
@AnatoliB is this something you can assign on your side? Thanks! |
@nzthiago -- do you have the full project file for this app? |
The project I was trying to bring up to V4 is the one I linked to in the issue description. The function project itself is in this subfolder: https://github.com/nzthiago/event-processing-spark/tree/master/src/eventstreamprocessing |
@brettsam, I reproduced the issue: The issue is fixed after updating EH sdk. I am trying to get green build for the PR: |
@alrod would that mean customers upgrading from V3 to V4 would have to do what I did and change their existing Functions code to use the new EH SDK classes/methods/properties? Even getting the message body is different with the new EH SDK. |
@nzthiago, the package I update is the latest Microsoft.Azure.EventHubs.Processor(3.0.0 -> 4.3.2). I did not update to newest Microsoft.Azure.EventHubs.Processor. So the customers do not need to update the code. |
Ok thank you, that's great to hear @alrod - let me know if / when there's an update and I can re-test on my side with that sample I was using. It's likely we'll need to document/update the documentation of the minimum version of the EH WebJobs nuget that is required. |
@alrod what is the underlying problem? I am not sure I understand why updating from major version 3.x to 4.x fixes the issue?What changed in Functions V4 that breaks compatibility with eventhubs processor 3.x? |
I created 2 console apps pointed to netcoreapp3.1 and net6.0. Both apps have the same code and are referenced to For net6.0 I got the same exception as for V4 FunctionApp:
The issue was fixed in Microsoft.Azure.Amqp 2.4.6: V4 function app works with EH extension pointed to Microsoft.Azure.EventHubs.Processor 4.3.2(Microsoft.Azure.Amqp 2.4.11) or the explicit reference to Microsoft.Azure.Amqp 2.4.11. |
This fix is merged |
@paulbatum - I think this means #1987 should update the Event Hubs one to 4.3.0 |
@nzthiago done. |
Function App name: tried locally only
Tools used: VS Code and Core Tools
New V4 app or existing V3 app migrated to V4: Existing V3 migrating to V4 - https://github.com/nzthiago/event-processing-spark
According to #1987 the Microsoft.Azure.WebJobs.Extensions.EventHubs package version 4.2.0 should work with Functions v4 for triggering and from.
VS Code Debugging and Func start works, but throws this exception when trying to read from Event Hubs with Microsoft.Azure.WebJobs.Extensions.EventHubs 4.2.0:
After updating Microsoft.Azure.WebJobs.Extensions.EventHubs to version 5.0.0-beta.7 and making all the code updates to use the new Event Hubs SDK type changes, it worked fine.
The text was updated successfully, but these errors were encountered: