Skip to content

fix(streaming): bound Event Hubs shutdown - #10288

Merged
ReubenBond merged 2 commits into
dotnet:mainfrom
ReubenBond:reubenbond-fix-eventhub-shutdown-timeouts
Jul 21, 2026
Merged

ReubenBond merged 2 commits into
dotnet:mainfrom
ReubenBond:reubenbond-fix-eventhub-shutdown-timeouts

Conversation

@ReubenBond

@ReubenBond ReubenBond commented Jul 20, 2026 •

Copy link
Copy Markdown
Member

Fixes #10283.

Event Hubs receiver shutdown could exceed its configured budget because PartitionReceiver.CloseAsync() was called without cancellation, causing local pulling-agent system-target calls to hit the 30-second response timeout. This change passes the receiver shutdown budget through to the Azure SDK close operation, bounds the provider lifecycle observer while allowing cleanup to continue, and invokes local pulling-agent shutdown without a message round trip.

Manager and agent shutdown paths are also made idempotent, with regression coverage for a blocked receiver close and repeated shutdown.

Microsoft Reviewers: Open in CodeFlow

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@ReubenBond ReubenBond changed the title Fix recurring EventHub stream provider shutdown timeouts fix(streaming): bound Event Hubs shutdown Jul 20, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 6ff08a54-acbc-49aa-806c-7e569ac1c399
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 6ff08a54-acbc-49aa-806c-7e569ac1c399
@ReubenBond
ReubenBond force-pushed the reubenbond-fix-eventhub-shutdown-timeouts branch from 1b27cb1 to 746961a Compare July 21, 2026 04:09
@ReubenBond
ReubenBond merged commit 967e8e9 into dotnet:main Jul 21, 2026
62 checks passed
@ReubenBond
ReubenBond deleted the reubenbond-fix-eventhub-shutdown-timeouts branch July 21, 2026 05:20
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix recurring EventHubStreamProvider shutdown timeouts

1 participant