ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Belyak (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-6977) Wrong initial BitSet size in GridPartitionStateMap
Date Tue, 21 Nov 2017 14:37:00 GMT
Alexander Belyak created IGNITE-6977:

             Summary: 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

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

View raw message