Open jonnylangefeld opened 5 years ago
@jonnylangefeld do you call (*leasedReceiver).Close
for each lr?
@gavinfish We don't. We're using the almost exact code as in the readme
for EPH which doesn't manually close the leasecheckpointer at all. Our setup differs only in that we write the incoming events to a channel to be processed concurrently later on. The application runs continuously as there will be always events in the EventHubs namespace in our case. Does this answer your question?
I'm experiencing the same behavior in my production setup. Is this resolved?
are there any plans to fix this?
We ended up migrating to shopify/sarama and using the Kafka interface. The library is not only much more efficient but also well maintained. Maybe that works for you too?
Expected Behavior
Amount of go routines for Go routine leak in azure-event-hubs-go/v2/eph.(*leasedReceiver).Run.func1 doesn't increase over time
Actual Behavior
the go routines are leaking and memory footprint grows
Analysis
This is basically the same issue as described ind #136. Here are two screenshots taken 1:40 hrs apart from each other indicating a significant increase of go routines for the described function:
Environment