You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by "Anthony Baker (JIRA)" <ji...@apache.org> on 2016/12/28 00:06:00 UTC

[jira] [Updated] (GEODE-2129) Need to generate pdx type id random(or avoid sequential)

     [ https://issues.apache.org/jira/browse/GEODE-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anthony Baker updated GEODE-2129:
---------------------------------
    Fix Version/s: 1.1.0

> Need to generate pdx type id random(or avoid sequential)
> --------------------------------------------------------
>
>                 Key: GEODE-2129
>                 URL: https://issues.apache.org/jira/browse/GEODE-2129
>             Project: Geode
>          Issue Type: Bug
>          Components: serialization
>            Reporter: Hitesh Khamesra
>            Assignee: Hitesh Khamesra
>             Fix For: 1.1.0
>
>
> Right now pdxtype id has 4 bytes.  Out of those 4 bytes, one byte reserved for distributed-system-id, this make sure type id generated from different cluster has different id. For rest of the three bytes we just increment counter to create new pdxtype id.  In the field, we have observed that sometimes this pdxType Id collides.  One reason could be they end up having same distributed-system-id for the different cluster.  
> Thus to avoid a collision, we will be using hashcode of pdxType for three bytes of pdxType id. That will reduce the possibility of collision.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)