Azure / Azure/azure-functions-host

[Custom Handlers - Go] Function with Event Hub trigger stopped triggering

Open
#6,790 5 comments 0 reactions 1 assignee Claimed by @yojagad View on GitHub
needs-investigation
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 10h
Merged PRs (30d)
36

Description

I have a Function App that has one function with an Event Hub trigger. I noticed that this function stopped triggering around the end of the day on October 2nd/beginning of October 3rd:

Screen Shot 2020-10-14 at 8 59 36 AM

During this time that the function was not triggering, there were still messages going into the Event Hub, so I would expect my function to trigger:

Screen Shot 2020-10-14 at 9 22 47 AM

I noticed this early in the day on October 6th. At this time I went to the Function App in the portal to start investigating. Shortly after visiting the Function App in the portal, the function started to trigger again - I did not restart the function. I know after the function starting triggering again it started to experience errors because of the bug that is mentioned [here](https://github.com/Azure/azure-webjobs-sdk/issues/2576#issuecomment-692305456) but I don't have our functions updated to the latest version. With that I mind, I want to scope this issue just to the issue of the function not triggering around October 2nd. I have encountered an issue similar to this around a year ago where functions with an Event Hub trigger would randomly stopped triggering until we visited them in the portal.

Looking at App Insights, the last time I see logs for the Function App in question is 2020-10-03T01:20:01.670Z. I do not see anything in App Insights or the function detectors that would help me determine the cause.

I do have a support ticket (120100624002903) opened but I am opening an issue here also.

#### Investigative information

Please provide the following:

- Timestamp: 2020-10-03T01:20:01.670Z (last time I started to see logs)
- Function App version: 3.0.14287.0
- Function App name:
- Function name(s) (as appropriate):
- Invocation ID: 9e944c05-e155-4e5b-a0dc-79f6d6554f62 (last time I started to see logs)
- Region: Central US

#### Repro steps

N/A

#### Expected behavior

My function should be triggering on the Event Hub events.

#### Actual behavior

My function stopped triggering until I visited in the portal when I was starting my investigation.

#### Known workarounds

Visiting the function in the portal made it start triggering again.

#### Related information

The function.json file for the function:

```
{
"bindings": [
{
"type": "eventHubTrigger",
"name": "events",
"direction": "in",
"eventHubName": "%EVENT_HUB_NAME%",
"consumerGroup": "%CONSUMER_GROUP%",
"cardinality": "many",
"connection": "EVENT_HUB_CONNECTION_STRING",
"dataType": "string"
}
]
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.