GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — fix(streaming): don't recycle in-flight pooled buffers mid-batch by ReubenBond · Pull Request #10264 · dotnet/orleans Conversation
|
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This PR fixes a streaming buffer-corruption bug in Orleans’ pooled queue cache infrastructure by preventing in-flight pooled buffers from being recycled mid-batch, and adds regression tests to cover the corruption scenario plus an oversized-message buffer leak.
Changes:
ChronologicalEvictionStrategy.OnBlockAllocated to avoid returning still-in-use buffers to the pool mid-batch.| File | Description |
|---|---|
| test/Orleans.Streaming.Tests/OrleansRuntime/Streams/PooledQueueCacheTests.cs | Adds regression tests for mid-batch corruption and oversized-message non-leak; updates test converter allocation order accordingly. |
| src/Orleans.Streaming/MemoryStreams/MemoryPooledCache.cs | Disposes newly-allocated buffers on oversized-message failure before eviction registration to prevent leaks. |
| src/Orleans.Streaming/Generator/GeneratorPooledCache.cs | Same oversized-message no-leak allocation ordering fix for generator cache. |
| src/Orleans.Streaming/Common/PooledCache/ChronologicalEvictionStrategy.cs | Removes eager-free logic from OnBlockAllocated to prevent recycling in-flight buffers while cache is “empty”. |
| src/Azure/Orleans.Streaming.EventHubs/Providers/Streams/EventHub/EventHubQueueCache.cs | Same oversized-message no-leak allocation ordering fix for EventHub queue cache. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Fix 'to big' -> 'too big' typo in the EventHub and Generator oversized-message exception messages, matching the Memory cache, and make the test TestQueueMessage.Data an init-only property so per-message payloads can't be mutated after construction. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 577af892-8411-4f35-9b87-55ad42b0d059
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
EventHub streaming: FixedSizeBuffer recycled mid-batch corrupts cached segments (ArgumentOutOfRangeException in SegmentBuilder.ReadNextString)
There was an error while loading. Please reload this page.