[JBoss JIRA] (ISPN-2575) KeyTransformer registration is required on all nodes of the cluster, in case of custom keys
by Mircea Markus (JIRA)
[ https://issues.jboss.org/browse/ISPN-2575?page=com.atlassian.jira.plugin.... ]
Mircea Markus updated ISPN-2575:
--------------------------------
Assignee: Adrian Nistor (was: Sanne Grinovero)
> KeyTransformer registration is required on all nodes of the cluster, in case of custom keys
> -------------------------------------------------------------------------------------------
>
> Key: ISPN-2575
> URL: https://issues.jboss.org/browse/ISPN-2575
> Project: Infinispan
> Issue Type: Enhancement
> Components: Querying
> Affects Versions: 5.2.0.Beta5
> Reporter: Anna Manukyan
> Assignee: Adrian Nistor
> Attachments: ClusteredCacheTest.java
>
>
> The case is the following:
> I have a clustered cache on which I want to perform a search. I'm doing the following:
> I'm initializing SearchManager on node1, I'm registering a custom key transformer for my key using the created searchmanager, but then when I'm trying to put data into the cache on node1 (which is in REPL_SYNC mode with cache on node2), I'm getting the exception:
> java.lang.IllegalArgumentException: Indexing only works with entries keyed on Strings, primitives and classes that have the @Transformable annotation - you passed in a class org.infinispan.query.test.CustomKey3. Alternatively, see org.infinispan.query.SearchManager#registerKeyTransformer
> When I'm initializing the SearchManager using node2 cache and register the keyTransformer on it as well, then everything works perfectly, even though I am not using the second created SearchManager.
> The test which reproduces the issue is attached to the jira. Please see the test case: testSearchKeyTransformer()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
4 days, 20 hours
[JBoss JIRA] (ISPN-8359) Add default methods for various Serializable methods on Streams
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-8359?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes commented on ISPN-8359:
-----------------------------------------
Merged into master, leaving it open until back porting to 9.1.x
> Add default methods for various Serializable methods on Streams
> ---------------------------------------------------------------
>
> Key: ISPN-8359
> URL: https://issues.jboss.org/browse/ISPN-8359
> Project: Infinispan
> Issue Type: Task
> Reporter: William Burns
> Assignee: William Burns
> Fix For: 9.1.2.Final, 9.2.0.Alpha1
>
>
> Java 8 added default methods. At the time I didn't think to add them when I introduced Serializable variants for various methods. But as the hierarchy becomes larger, this produces a lot of code bloat. Thus we should remove all of the impl methods and replace them all with default variant on the interface.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years
[JBoss JIRA] (ISPN-8348) Some methods from cache API do not work properly with off-heap
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-8348?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes commented on ISPN-8348:
-----------------------------------------
Merged into master, leaving it open until back porting to 9.1.x
> 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
> Assignee: William Burns
> Fix For: 9.1.2.Final, 9.2.0.Alpha1
>
>
> 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)
8 years
[JBoss JIRA] (ISPN-8352) DefaultCacheManager and RemoteCacheManager implement Closeable
by Pedro Ruivo (JIRA)
[ https://issues.jboss.org/browse/ISPN-8352?page=com.atlassian.jira.plugin.... ]
Pedro Ruivo updated ISPN-8352:
------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 9.2.0.Alpha1
(was: 9.2.0.Final)
Resolution: Done
> DefaultCacheManager and RemoteCacheManager implement Closeable
> --------------------------------------------------------------
>
> Key: ISPN-8352
> URL: https://issues.jboss.org/browse/ISPN-8352
> Project: Infinispan
> Issue Type: Enhancement
> Components: Core
> Affects Versions: 9.1.1.Final
> Reporter: Tristan Tarrant
> Assignee: Tristan Tarrant
> Fix For: 9.2.0.Alpha1
>
>
> The DefaultCacheManager and RemoteCacheManager implement our own Lifecycle start/stop methods.
> They should also implement the java.io.Closeable interface for symmetry with other similar resource-holding objects (e.g. javax.cache.CacheManager)
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years