Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8545

OffHeap size count doesn't work properly with VERSION or CUSTOM metadata

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 9.1.4.Final, 9.2.0.Final
    • 9.1.3.Final, 9.2.0.Final
    • Off Heap
    • None

      Off heap added a new getSize method on OffHeapEntryFactory. Unfortunately when using a VERSION or CUSTOM metadata we are adding 4 to the metadataSize instead of the offsetSize. This means that the value size is actually the metadata size on accident.

      https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/container/offheap/OffHeapEntryFactoryImpl.java#L182

              wburns@redhat.com Will Burns
              wburns@redhat.com Will Burns
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: