[infinispan-issues] [JBoss JIRA] (ISPN-2575) KeyTransformer registration is required on all nodes of the cluster, in case of custom keys
Anna Manukyan (JIRA)
jira-events at lists.jboss.org
Fri Nov 30 11:26:21 EST 2012
Anna Manukyan created ISPN-2575:
-----------------------------------
Summary: 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: Feature Request
Components: Querying
Reporter: Anna Manukyan
Assignee: Sanne Grinovero
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.
You can find the test reproducing the issue here:
https://github.com/andyuk1986/infinispan/blob/QUERY/query/src/test/java/org/infinispan/query/blackbox/ClusteredCacheTest.java
--
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
More information about the infinispan-issues
mailing list