Open Bestyan opened 4 weeks ago
Thanks for reporting this.
We've been working on a newer version of the internals for Event Hubs (it's been GA'd for Service Bus for several months), and this behaviour doesn't appear in tests where we have idler clients. We're planning to release a beta where people can opt into using the v2 stack via environment variable (can disable it to switch back to original v1 stack). Would you be interested in trying out the beta?
Hi connie, we would definitely be interested in that. However it won't help us with this issue as we cannot use a beta library in a production environment.
Describe the bug In our low traffic environments (~40 messages per second on our eventhub), we're facing issues with the
EventProcessorClient
. It runs stable for a while, but after about a day it just stops reading. it does not crash, nor does it throw exceptions, it just stops. Restarting the application fixes the issue until it happens again. Sometimes it's after 5 minutes, sometimes after a day, sometimes weeks. In the last 7 days, we have observed it 3 times in our prod environment.Exception or Stack Trace I've replaced the true service name with
my-service
, just fyiTo Reproduce Steps to reproduce the behavior:
Code Snippet The
EventProcessorClient
setup looks like this:Expected behavior
EventProcessorClient
keeps reading messages.Screenshots Azure Portal Metrics of the eventhub in the time where it happens (reading stops)
Grafana Metrics of our service: we have 2 pods running and they both stop reading about 1 minutes apart. Note that the line continues, meaning the metrics keep getting published as the pods are still healthy.
Here it happened to both pods 1 hour apart.
Here both pods stopped reading at the same time.
Setup:
azure-messaging-eventhubs:5.18.6
azure-messaging-eventhubs-checkpointstore-blob:1.19.6
azure-identity:1.13.2
21.0.1
Additional context Here is the extended log file of the above log snippet where you can see the pump threads processing messages before: sdk-issue-prod-jp.zip
The same issue also occurs in a similar service that uses these dependency versions:
azure-messaging-eventhubs:5.18.2
azure-messaging-eventhubs-checkpointstore-blob:1.19.2
azure-identity:1.11.4
Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report