Closed hallvictoria closed 2 weeks ago
Thank you for your feedback. Tagging and routing to the team member best able to assist.
@hallvictoria: Neither the Event Hubs client nor service inspect or alter the body of an event in any way. It is published in byte form and treated as an opaque blob of bytes. The functions extension package does potentially deserialize based on the bindings used, but also does not interpret or alter the data.
In order to perform any analysis, we'll need to ask that you help us understand how an event gets passed from the trigger to the Python worker - particularly in what form that data comes out. Once we understand that, we'll have some insight into what binding/deserialization path it takes.
Hi @hallvictoria. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.
Hi @jsquire, thanks for taking a look into this.
As per my comment on the linked issue, the user was reporting a situation where the output of their function app was unexpected.
This is their current flow:
[{"some": "awesome", "event": "body"}, {"some": "other", "event": "body"}]
[[{"some": "awesome", "event": "body"}, {"some": "other", "event": "body"}]]
This is the flow needed to fit the user's expectations:
[{"some": "awesome", "event": "body"}, {"some": "other", "event": "body"}]
[{"some": "awesome", "event": "body"}], [{"some": "other", "event": "body"}]
The change needed to accommodate the user's expectations would be solely in the data that the worker receives. If the data isn't wrapped in a list and is instead a list of dicts, the worker will return a list of EventHubEvent objects.
If this isn't the correct spot to file an issue or if this is expected behavior, please let me know.
@hallvictoria : I appreciate your response but, unfortunately, that does not address the questions that I'm asking. In order to assist, I need to understand how the data that is surfaced by the Event Hubs extension package via the trigger is consumed by the infrastructure that passes it to the Python worker. That is not something that the Event Hubs extension has insight into nor influence over.
Understanding how the data is passed and consumed would allow me to look at the bindings for that specific format and try to repro. Because there are several layers to the stack, each owned by different teams, the end-to-end repro is not sufficient for us to move forward. If that is all that you've got, I'd suggest transferring this over to the Functions team folks who own the Python worker. They can start peeling back the layers of the onion and pass the necessary details to the folks that own the Functions runtime, the isolated worker package, and then back to us if related to the bindings.
Hi @hallvictoria. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.
Hi @hallvictoria, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!
Is there any new information on this?
What you see here is the current status. Any investigation or action on the part of the Azure SDK extensions package is blocked waiting on information from @hallvictoria, as was requested above. At present, it is unclear whether this is related to something in the Functions infrastructure or the extension.
Thanks!
Closing as this is due to a limitation in manually testing non-HTTP functions. Interacting with prod resources works as expected, and this isn't a bug in the worker or SDK side.
@jsquire Does this information help you checking out the issue?
@JonasEichhorn: Please see the note from Victoria above; the root cause of this is external to the extensions package and was related to Functions infrastructure.
Library name and version
Azure.Messaging.EventHubs
Describe the bug
Triggering an event hub triggered function with cardinality MANY passes a single EventHubEvent to the function but wraps the event body in a list.
Continuation from https://github.com/Azure/azure-functions-python-worker/issues/1524 The data received in the worker is already wrapped in the list. This is not additional processing on the worker side.
Expected behavior
Input data:
{'input': [{'some': 'awesome', 'event': 'body'}, {'some': 'other', 'event': 'body'}]}
Expected return value:
[{'some': 'awesome', 'event': 'body'}, {'some': 'other', 'event': 'body'}]
Actual behavior
Actual return value:
[[{"some": "awesome", "event": "body"}, {"some": "other", "event": "body"}]]
The return value is wrapped in a list.
Reproduction Steps
[{"some": "awesome", "event": "body"}, {"some": "other", "event": "body"}]
Sample code:
Environment
No response