I have an Azure Function app that two of the functions are listening to an EventHub and get triggered when a new event arrives in the hub. Both functions have their own consumer groups
.
one of the functions starts a process which could be pretty intensive and are fulfilled by other functions in the app.
The FunctionApp is V2 consumption-based.
As long as there is only a single instance of FunctionApp, everything is fine but when it scales, from time to time I get the following error which is apparently result of having several functions listening to an eventhub within the same consumer-group
.
Microsoft.Azure.EventHubs.ReceiverDisconnectedException
New receiver with higher epoch of '71' is created hence current receiver with epoch '70' is getting disconnected. If you are recreating the receiver, make sure a higher epoch is used. TrackingId:7cc543c80006767c0050b4775s42e306_G41_B87, SystemTracker:eventhubnamespace:eventhub:eventhub-name~8191|function-name, Timestamp:2019-08-01T13:20:38
Any solution or workaround to avoid it?