Skip to content

[10.x] fix(streaming): use a unique Event Hubs block pool ID - #11601

Merged
ReubenBond merged 2 commits into
dotnet:10.xfrom
ReubenBond:rb-event-hubs-10x-backport
Oct 27, 2026
Merged

ReubenBond merged 2 commits into
dotnet:10.xfrom
ReubenBond:rb-event-hubs-10x-backport

Conversation

@ReubenBond

@ReubenBond ReubenBond commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Backports #11592 to 10.x.

Event Hubs buffer pools currently construct their monitor ID from new Guid(), so separate factories for the same hub report the same block-pool identity. Use Guid.NewGuid() when each factory creates its shared buffer pool, giving each pool a distinct monitoring identity while retaining that identity across partitions and cache recreation.

Includes EventHubQueueCacheFactoryTests.CreateCache_UsesDistinctPoolIdsPerFactoryAndReusesIdAcrossPartitions, covering distinct IDs for two factories targeting the same hub, shared IDs across partitions and disposed/recreated caches, and exactly one pool-monitor creation per factory. Both changes apply unchanged from #11592.

Microsoft Reviewers: Open in CodeFlow

@ReubenBond ReubenBond changed the title fix(streaming): backport unique Event Hubs block pool IDs to 10.x [10.x] fix(streaming): use a unique Event Hubs block pool ID Oct 27, 2026
zbarrier and others added 2 commits October 27, 2026 14:17
Backport the implementation from dotnet#11592 to 10.x.

(cherry picked from commit 7eb2730)
(cherry picked from commit 65628e0e5313b7c4e7892003b61183964d354d1e)
@ReubenBond
ReubenBond force-pushed the rb-event-hubs-10x-backport branch from bb180bb to 431af0c Compare October 27, 2026 21:17
@ReubenBond
ReubenBond merged commit 441b975 into dotnet:10.x Oct 27, 2026
83 of 84 checks passed
@ReubenBond
ReubenBond deleted the rb-event-hubs-10x-backport branch October 27, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants