[infinispan-issues] [JBoss JIRA] (ISPN-4683) DefaultConsistentHash segment size is not not computed correctly
Dan Berindei (JIRA)
issues at jboss.org
Mon Sep 1 16:37:00 EDT 2014
[ https://issues.jboss.org/browse/ISPN-4683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Berindei updated ISPN-4683:
-------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/2835
> DefaultConsistentHash segment size is not not computed correctly
> ----------------------------------------------------------------
>
> Key: ISPN-4683
> URL: https://issues.jboss.org/browse/ISPN-4683
> Project: Infinispan
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Core, Remote Protocols
> Affects Versions: 6.0.2.Final, 7.0.0.Beta1
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Critical
> Fix For: 7.0.0.Beta2
>
>
> The segment size is computed using {{o.i.commons.util.Util.getSegmentSize()}} both on the server and in the Java client. The computation uses {{float}} division, but {{float}} precision is not good enough and sometimes the segments are too small (e.g. with 200 segments, the segment size is 10737418 instead of 10737419). This means the keys with a hash of {{Integer.MAX_VALUE}} or {{-1}} are not properly mapped to a segment.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the infinispan-issues
mailing list