You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Stepachev Maksim (JIRA)" <ji...@apache.org> on 2019/08/13 08:42:00 UTC

[jira] [Created] (IGNITE-12062) IntMap throws NullPointerException when map is creating

Stepachev Maksim created IGNITE-12062:
-----------------------------------------

             Summary: IntMap throws NullPointerException when map is creating
                 Key: IGNITE-12062
                 URL: https://issues.apache.org/jira/browse/IGNITE-12062
             Project: Ignite
          Issue Type: Bug
            Reporter: Stepachev Maksim
            Assignee: Stepachev Maksim


The problem located here: 
compactThreshold = (int)(COMPACT_LOAD_FACTOR * (entries.length >> 1));
scaleThreshold = (int)(entries.length * SCALE_LOAD_FACTOR);

The fix looks that:
compactThreshold = (int)(COMPACT_LOAD_FACTOR * (entriesSize >> 1));
scaleThreshold = (int)(entriesSize * SCALE_LOAD_FACTOR);



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)