[infinispan-issues] [JBoss JIRA] (ISPN-8348) Some methods from cache API do not work properly with off-heap

William Burns (JIRA) issues at jboss.org
Wed Sep 27 10:27:01 EDT 2017


    [ https://issues.jboss.org/browse/ISPN-8348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13469330#comment-13469330 ] 

William Burns commented on ISPN-8348:
-------------------------------------

get() - I don't know for sure if we can guarantee this or not. This is the same behavior for both OFF_HEAP, BINARY and remote caches. I would say we just need to document this when using off heap.
keySet() - I am surprised this one is failing. I have to dig deeper. Also while looking at this we do double converting toStorage btw [~gustavonalle]
replaceAll() - This is just a bug in the EncoderCache as Gustavo mentioned, it was in the previous version as well is all. Had to add like 15 characters to fix :)

> Some methods from cache API do not work properly with off-heap
> --------------------------------------------------------------
>
>                 Key: ISPN-8348
>                 URL: https://issues.jboss.org/browse/ISPN-8348
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 9.1.0.Final
>            Reporter: Vojtech Juranek
>
> Following methods from cache API don't work properly with off-heap:
> * {{get()}} returns value even for keys, which are not equal (for keys, which have same content, but {{key#equals()}} returns {{false}})
> * {{keySet()}} - from docs: modifications and changes to the cache will be reflected in the set and vice versa. This is not the case for off-heap.
> * {{replaceAll()}} fails with class cast exception (e.g. in case of {{Cache<String,String>}} with {{java.lang.ClassCastException: java.lang.String cannot be cast to org.infinispan.commons.marshall.WrappedBytes}})



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the infinispan-issues mailing list