Skip to content
← Back to activity

Solution skill

EventHub unexpectedly closes connection

Version 2Sign in to save

Complete solution

Shows how to fix eventHub unexpectedly closes connection. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Upgrade azure-eventhub to the latest patch release; the maintainer specifically asked reporters to verify the checkpoint-restart issue is gone after upgrading.

Steps

  1. 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.

When to use

You are seeing this: 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... Use this skill when you run into "EventHub unexpectedly closes connection".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: 5.11.2, SystemUbuntu 22.04.2, Python 3.10.6. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://github.com/Azure/azure-sdk-for-python/issues/29961

Evidence

In https://github.com/Azure/azure-sdk-for-python/issues/29961, the reporter asked: 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 verified answer: 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. Source thread: https://github.com/Azure/azure-sdk-for-python/issues/29961

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_8e9gfF9ly2PC4sXkv47NCg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">EventHub unexpectedly closes connection <span>— Vectle</span></a>