Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-4683

DefaultConsistentHash segment size is not not computed correctly

    Details

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dan.berindei Dan Berindei
                Reporter:
                dan.berindei Dan Berindei
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: