[infinispan-issues] [JBoss JIRA] Commented: (ISPN-1281) Default consistent hash should use a much larger hash space

Manik Surtani (JIRA) jira-events at lists.jboss.org
Mon Aug 1 11:13:30 EDT 2011


    [ https://issues.jboss.org/browse/ISPN-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12617888#comment-12617888 ] 

Manik Surtani commented on ISPN-1281:
-------------------------------------

Using 0 to Integer.MAX_VALUE instead, since this still sufficiently reduces the probability of a collision. The HotRod protocol won't deal with negative numbers.

> Default consistent hash should use a much larger hash space
> -----------------------------------------------------------
>
>                 Key: ISPN-1281
>                 URL: https://issues.jboss.org/browse/ISPN-1281
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Distributed Cache
>    Affects Versions: 5.0.0.CR8
>            Reporter: Manik Surtani
>            Assignee: Manik Surtani
>              Labels: consistent_hash
>             Fix For: 5.0.0.FINAL
>
>
> This is to minimise the collisions as reported in ISPN-1275.  It isn't a complete solution but drastically reduces the probability of collision if the hash space spans Integer.MIN_VALUE -> Integer.MAX_VALUE.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list