You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Dmitriy Setrakyan (JIRA)" <ji...@apache.org> on 2016/06/01 00:29:12 UTC
[jira] [Commented] (IGNITE-3191) BinaryObjectBuilder: binary schema
id depends on the order of fields addition
[ https://issues.apache.org/jira/browse/IGNITE-3191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15308960#comment-15308960 ]
Dmitriy Setrakyan commented on IGNITE-3191:
-------------------------------------------
Any reason why {{LinkedHashMap}} was chosen initially?
> BinaryObjectBuilder: binary schema id depends on the order of fields addition
> -----------------------------------------------------------------------------
>
> Key: IGNITE-3191
> URL: https://issues.apache.org/jira/browse/IGNITE-3191
> Project: Ignite
> Issue Type: Bug
> Reporter: Denis Magda
> Fix For: 1.7
>
>
> Presently if an object is created using BinaryObjectBuilder then several BinarySchemes can be generated for the same set of fields in case when fields are added in a different order.
> This happens because {{LinkedHashMap}} is used underneath. However we should rely on order-free structure like {{TreeMap}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)