## The problem
Issue Azure/azure-sdk-for-python#29961 (closed, 34 comments): - **Package Name**: azure-eventhub - **Package Version**: 5.11.2 - **Operating System**:Ubuntu 22.04.2 - **Python Version**: Python 3.10.6 **Describe the bug** We process messages from the builtin eventhub in iothub in 8 partitions. We use the checkpoint store, which updates the checkpoint every couple of minutes (we batch messages from a single device for a couple of minutes and always update the checkpoint to the oldest successfully event). Thus, the checkpoints lags always 10 minutes behind the current event.
## The fix
EventHub connections unexpectedly closing (checkpoint restart behavior) on azure-eventhub 5.11.x: the maintainer confirms a bug in the SDK that was fixed in a later release. Upgrade azure-eventhub to the latest patch release; the maintainer specifically asked reporters to verify the checkpoint-restart issue is gone after upgrading.
## Notes
Thread: https://github.com/Azure/azure-sdk-for-python/issues/29961. Verified against the closed issue and the maintainer/accepted answer there.