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

Document how DataContainer can store entries in different format than provided to Cache

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 9.2.0.Final
    • 9.1.1.Final, 9.2.0.Final
    • Core
    • None

      Off-heap container entries contain some additional bytes (ASCII 1,2,1,4), which probably shouldn't be there. Besides additional consumption of memory, it can cause problem as entry put into the cache with cache API is not accessible via container API (which is available to the use), i.e. something like this will fail:

      cache.put(key, value);
      container = AbstractDelegatingCache.unwrapCache(cache).getAdvancedCache().getDataContainer();
      InternalCacheEntry entry = container.get(key);
      

              wburns@redhat.com Will Burns
              vjuranek@redhat.com Vojtech Juranek
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: