You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Dmitriy Pavlov (JIRA)" <ji...@apache.org> on 2018/06/26 17:51:18 UTC

[jira] [Updated] (IGNITE-6977) Wrong initial BitSet size in GridPartitionStateMap

     [ https://issues.apache.org/jira/browse/IGNITE-6977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitriy Pavlov updated IGNITE-6977:
-----------------------------------
    Fix Version/s:     (was: 2.6)
                   2.7

> Wrong initial BitSet size in GridPartitionStateMap
> --------------------------------------------------
>
>                 Key: IGNITE-6977
>                 URL: https://issues.apache.org/jira/browse/IGNITE-6977
>             Project: Ignite
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 2.1
>            Reporter: Alexander Belyak
>            Assignee: Alexander Belyak
>            Priority: Minor
>             Fix For: 2.7
>
>
> In constructor of org.apache.ignite.internal.utilGridPartitionStateMap(int parts) {
>         states = new BitSet(parts);
>     }
> we initialize BitSet with part bit, but use private static final int BITS for each partition state. As result long[] in BitSet get difficult predictable size (depends of access order it can be exact as needed or almost twice bigger with at least one additional array copying)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)