ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepachev Maksim (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-12062) IntMap throws NullPointerException when map is creating
Date Tue, 13 Aug 2019 08:42:00 GMT
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)

Mime
View raw message