question

Liav-8704 avatar image
0 Votes"
Liav-8704 asked PRADEEPCHEEKATLA-MSFT commented

Azure EventHubTrigger Java function does not always get triggered

Hi,

We have a simple Azure Event Hub which has an Azure function from type @EventHubTrigger .
when new messages are sent to the event hub, the azure function should get triggered and process the data from the event hub.
what actually happens is that if we sent 5 messages one by one we see that the function is triggered only for messages 1-3 (as example).

in the application insight we see 5 messages sent and 3 arrives to the function.
no exceptions in the application insight and no traces for the missing messages.
we use the $Default consumer group (only 1 exists).

tried to see what is actually in the event hub but we see only a sample of the data.
any ideas how to debugs this issue?

thanks,
Liav

azure-functionsazure-event-hubs
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Liav-8704 avatar image
1 Vote"
Liav-8704 answered PRADEEPCHEEKATLA-MSFT commented

ok found the problem , there was a local azure function that was connected to the same event hub so messages were sent to both of the functions.
(eclipse and java azure function have a problem when it is shutdown in eclipse the function still runs in the background)

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Liav-8704,

Glad to know that your issue has resolved. And thanks for sharing the solution, which might be beneficial to other community members reading this thread.

0 Votes 0 ·