Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-6977

Wrong initial BitSet size in GridPartitionStateMap

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.1
    • 2.7
    • general
    • None

    Description

      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)

      Attachments

        Activity

          People

            sbberkov Alexander Belyak
            sbberkov Alexander Belyak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: