[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
Tue Aug 2 05:16:24 EDT 2011


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

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

I suppose I didn't explain properly.  It isn't representing negative numbers that is the problem, it is the assumption that the hash space starts from 0.  And this assumption is "hard coded" in the spec and clients are written with this in mind.

> 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