Repository navigation
fix(streaming): use a unique Event Hubs block pool ID - #11592
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the Event Hubs block-pool metric identification change.
No open issues 🎉
What changed in this PR
Fixes Event Hubs block-pool metric identification so separate factories using the same Event Hub path no longer share an all-zero pool ID.
Changes:
- Replaces
new Guid()withGuid.NewGuid()to generate a unique ID for each factory’s shared pool. - Preserves the ID format without changing public APIs, caching, or serialization.
| File | Description |
|---|---|
src/Azure/Orleans.Streaming.EventHubs/Providers/Streams/EventHub/EventHubQueueCacheFactory.cs |
Generates a unique block-pool ID for metric attribution. |
Review effort: Balanced
Code coverage
Report-only conclusion: current-main baseline stale. The newest successful coverage run tested d1f2a16, not current main 9b5356e. Coverage combines every CI test matrix job, including providers, CodeGen, .NET 8/10, Linux, Windows, and macOS, using canonical physical source and branch identities. The comparison remains report-only while normal line and branch variance is calibrated. Coverage details |
7eb2730 to
e4252ab
Compare
|
@dotnet-policy-service agree |
|
This looks like a good/appropriate PR, @zbarrier. Thanks for opening it! Why did you close it? |
|
@zbarrier, it looks like this was closed while the CLA was being signed, so we have reopened it. Could you confirm that you would like us to keep it open? We are planning to include the fix in 11.0.0-preview.1 and 10.4.1. Thanks! |
|
It was an accident, I didn't mean to close it. I would like to keep it open. Thanks! |
|
Great, I will merge it soon! Thanks again |
Backport the implementation from dotnet#11592 to 10.x. (cherry picked from commit 7eb2730)
Problem
Event Hubs cache factories currently use an all-zero GUID in their shared block pool IDs. Factories targeting the same Event Hub path therefore report block pool metrics with identical
PathandObjectPoolIdtags.Solution
Generate a unique ID when each factory creates its shared pool, matching the memory and generator stream providers. Each named stream provider retains one adapter and cache factory per silo; partitions and recreated caches reuse that factory's pool and ID. This gives each configured pool distinct metric attribution with stable cardinality throughout its lifetime.
Add a focused regression test proving that separate factories for the same hub receive distinct pool IDs and that partitions and replacement caches reuse their factory's ID.
Microsoft Reviewers: Open in CodeFlow