[infinispan-issues] [JBoss JIRA] (ISPN-8385) Off-heap container entries contain addional bytes
William Burns (JIRA)
issues at jboss.org
Wed Nov 8 11:31:00 EST 2017
[ https://issues.jboss.org/browse/ISPN-8385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487620#comment-13487620 ]
William Burns commented on ISPN-8385:
-------------------------------------
Talking with [~gustavonalle] the user can do `cache.getAdvancedCache().getKeyDataConversion().toStorage(key)` to get the underlying key as the storage requires. I will add some documentation to the `DataContainer` to say this shouldn't be used directly and the user should use the above method to convert if the underlying cache isn't stored as is.
> Off-heap container entries contain addional bytes
> -------------------------------------------------
>
> Key: ISPN-8385
> URL: https://issues.jboss.org/browse/ISPN-8385
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 9.1.1.Final, 9.2.0.Alpha1
> Reporter: Vojtech Juranek
> Assignee: William Burns
>
> 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:
> {noformat}
> cache.put(key, value);
> container = AbstractDelegatingCache.unwrapCache(cache).getAdvancedCache().getDataContainer();
> InternalCacheEntry entry = container.get(key);
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the infinispan-issues
mailing list