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(serialization): defer interface collection codec dependencies by ReubenBond · Pull Request #10301 · 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 addresses a regression introduced in Orleans 10.2 where interface collection codecs eagerly resolve element codecs, causing IList<SequentialItem<T>> codec resolution to fail because SequentialItem<T> was not marked as serializable.
Changes:
SequentialItem<T> as a generated-serializable type with stable member IDs.SequentialItem<T> and IList<SequentialItem<T>>, plus a simple round-trip serialization check.| File | Description |
|---|---|
| test/Orleans.Core.Tests/Serialization/BuiltInSerializerTests.cs | Adds regression coverage for SequentialItem<T> and interface-list codec resolution plus a round-trip check. |
| src/Orleans.Streaming/Core/IAsyncBatchObserver.cs | Annotates SequentialItem<T> with [GenerateSerializer] and stable [Id] attributes so codecs can be generated/resolved. |
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 a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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 a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
test/Orleans.Serialization.UnitTests/InterfaceCollectionCodecTests.cs:549
class declarations in C# require a body; public sealed class UnsupportedElement; will not compile. Use an empty body instead. public sealed class UnsupportedElement;
Sorry, something went wrong.
There was an error while loading. Please reload this page.
d247633 to
56fe38d
Compare
56fe38d to
d0ce381
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
src/Orleans.Streaming/Core/IAsyncBatchObserver.cs:28
SequentialItem<T>.Item no longer has an [Id] attribute. This changes the serialized schema and will break compatibility with previously serialized payloads and existing generated-code expectations for this type. /// <value>The item.</value>
public T Item { get; }
src/Orleans.Streaming/Core/IAsyncBatchObserver.cs:35
SequentialItem<T>.Token no longer has an [Id] attribute. This changes the serialized schema and will break compatibility with previously serialized payloads and existing generated-code expectations for this type. public StreamSequenceToken Token { get; }
}
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| /// <typeparam name="T">The item type.</typeparam> | ||
| [GenerateSerializer] | ||
| public class SequentialItem<T> | ||
| { |
Keep fallback codec services lazy so interface collection codecs can select a concrete runtime codec before resolving fallback element codecs. Preserve the existing interface codec wire type and cover generated null fields and custom concrete collection codecs. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 8c9979b4-a5d3-45d0-8c6b-118d500f9ff7
d0ce381 to
22170f3
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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.
Successfully merging this pull request may close these issues.
Codec not found exception since upgrade to 10.2.x
There was an error while loading. Please reload this page.