[
https://issues.apache.org/jira/browse/IGNITE-12860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pavel Tupitsyn updated IGNITE-12860:
------------------------------------
Summary: .NET: NullReferenceException when serializing fields of the same
type in different order (was: .NET NullReferenceException when serializing
fields of the same type in different order)
> .NET: NullReferenceException when serializing fields of the same type in
> different order
> ----------------------------------------------------------------------------------------
>
> Key: IGNITE-12860
> URL: https://issues.apache.org/jira/browse/IGNITE-12860
> Project: Ignite
> Issue Type: Bug
> Components: platforms
> Affects Versions: 2.8
> Reporter: Alexey Kukushkin
> Assignee: Pavel Tupitsyn
> Priority: Major
> Labels: .NET, sbcf
> Attachments: ignite-12860-vs-2.8.patch
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> .NET NullReferenceException when serializing fields of the same type in
> different order
> +*Steps to reproduce*+:
> * Implement IBinarizable for a type having multiple fields and randomly
> select subset of the fields in the IBinarizable.WriteBinary implementation
> * Serialize the type multiple times
> +*Actual result*+:
> Eventual NullReferenceException at some iteration of serialization:
> {{Object reference not set to an instance of an object. }}{{at
> Apache.Ignite.Core.Impl.Binary.Structure.BinaryStructure.GetFieldId(String
> fieldName, Byte fieldType, Int32& pathIdx, Int32 actionIdx)}}{{ at
> Apache.Ignite.Core.Impl.Binary.Structure.BinaryStructureTracker.GetFieldId(String
> fieldName, Byte fieldTypeId)}}{{ at
> Apache.Ignite.Core.Impl.Binary.BinaryWriter.WriteFieldId(String fieldName,
> Byte fieldTypeId)}}{{ at
> Apache.Ignite.Core.Impl.Binary.BinaryWriter.WriteInt(String fieldName, Int32
> val)}}{{ at }}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)