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

Signed overflow when reading partition greater than Short.MAX_VALUE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.3
    • cache
    • None

    Description

      When starting a cache with the number of partitions greater than 32768, the following error is observed:

      Caused by: java.lang.IndexOutOfBoundsException: bitIndex < 0: -98295
      	at java.util.BitSet.get(BitSet.java:623)
      	at org.apache.ignite.internal.util.GridPartitionStateMap.state(GridPartitionStateMap.java:200)
      	at org.apache.ignite.internal.util.GridPartitionStateMap.setState(GridPartitionStateMap.java:173)
      	at org.apache.ignite.internal.util.GridPartitionStateMap.put(GridPartitionStateMap.java:148)
      	at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionMap.put(GridDhtPartitionMap.java:137)
      	at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionMap.readExternal(GridDhtPartitionMap.java:301)
      	at org.apache.ignite.internal.marshaller.optimized.OptimizedObjectInputStream.readExternalizable(OptimizedObjectInputStream.java:523)
      	at org.apache.ignite.internal.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:917)
      	at org.apache.ignite.internal.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:324)
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:367)
      	at org.apache.ignite.internal.marshaller.optimized.OptimizedMarshaller.unmarshal0(OptimizedMarshaller.java:227)
      

      Attachments

        Issue Links

          Activity

            People

              agoncharuk Alexey Goncharuk
              agoncharuk Alexey Goncharuk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: