[infinispan-issues] [JBoss JIRA] (ISPN-3488) Remote Queries don't work with Infinispan Directory

Adrian Nistor (JIRA) jira-events at lists.jboss.org
Wed Sep 11 11:13:04 EDT 2013


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

Adrian Nistor commented on ISPN-3488:
-------------------------------------

Infinispan directory provider uses some internal metadata caches that were not configured in the test, so it will create them on the fly using the default cache config from our cache manager. And the default config in our test is using ByteArrayKeyEquivalence, which is only good if your key is a byte[], which is true for our cache under test but not true for those internal metadata caches. That's why the put fails due to CCE in some provider internals. 

It's a case of misconfiguration. I'll close this issue, but yes, I'm considering adding a test that runs on top of infinispan provider.


                
> Remote Queries don't work with Infinispan Directory
> ---------------------------------------------------
>
>                 Key: ISPN-3488
>                 URL: https://issues.jboss.org/browse/ISPN-3488
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Querying
>    Affects Versions: 6.0.0.Alpha4
>            Reporter: Anna Manukyan
>            Assignee: Adrian Nistor
>             Fix For: 6.0.0.Beta1
>
>         Attachments: HotRodQueryIspnDirectoryTest.java, HotRodQueryTest.java
>
>
> The Remote Queries don't work with Infinispan Directory as a directory_provider.
> The exception thrown is:
> {code}
> org.infinispan.client.hotrod.exceptions.HotRodClientException:Request for message id[3] returned server error (status=0x85): org.hibernate.search.SearchException: HSEARCH000103: Unable to initialize IndexManager org.infinispan.query.remote.indexing.ProtobufValueWrapper
> 	at org.infinispan.client.hotrod.impl.protocol.Codec10.checkForErrorsInResponseStatus(Codec10.java:143)
> 	at org.infinispan.client.hotrod.impl.protocol.Codec10.readHeader(Codec10.java:99)
> 	at org.infinispan.client.hotrod.impl.operations.HotRodOperation.readHeaderAndValidate(HotRodOperation.java:56)
> 	at org.infinispan.client.hotrod.impl.operations.AbstractKeyValueOperation.sendPutOperation(AbstractKeyValueOperation.java:50)
> 	at org.infinispan.client.hotrod.impl.operations.PutOperation.executeOperation(PutOperation.java:30)
> 	at org.infinispan.client.hotrod.impl.operations.PutOperation.executeOperation(PutOperation.java:19)
> 	at org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.execute(RetryOnFailureOperation.java:46)
> 	at org.infinispan.client.hotrod.impl.RemoteCacheImpl.put(RemoteCacheImpl.java:217)
> 	at org.infinispan.client.hotrod.impl.RemoteCacheSupport.put(RemoteCacheSupport.java:79)
> 	at org.infinispan.client.hotrod.query.HotRodQueryTest.testAttributeQuery(HotRodQueryTest.java:85)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:601)
> 	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
> 	at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
> 	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
> 	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
> 	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
> 	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
> 	at org.testng.TestRunner.privateRun(TestRunner.java:767)
> 	at org.testng.TestRunner.run(TestRunner.java:617)
> 	at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
> 	at org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
> 	at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
> 	at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> 	at java.lang.Thread.run(Thread.java:722)
> {code}
> You can find attached the test - org.infinispan.client.hotrod.query.HotRodQueryTest and org.infinispan.client.hotrod.query.HotRodQueryIspnDirectoryTest. The failing one is the HotRodQueryIspnDirectoryTest which is extended from the first one. 

--
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