[
https://issues.redhat.com/browse/ISPN-11305?page=com.atlassian.jira.plugi...
]
Gustavo Fernandes updated ISPN-11305:
-------------------------------------
Steps to Reproduce:
{code:java}
String q = String.format("SELECT bar FROM foo where bar:'1'");
CacheQuery<Object[]> cacheQuery = searchManager.getQuery(q,
IndexedQueryMode.BROADCAST);
ResultIterator<Object[]> iterator = cacheQuery.iterator(new
FetchOptions().fetchMode(LAZY));
iterator.next();
{code}
Broadcasted queries with projections fail for LAZY iterator
-----------------------------------------------------------
Key: ISPN-11305
URL:
https://issues.redhat.com/browse/ISPN-11305
Project: Infinispan
Issue Type: Bug
Affects Versions: 10.1.2.Final, 11.0.0.Alpha1
Reporter: Gustavo Fernandes
Assignee: Gustavo Fernandes
Priority: Major
{noformat}
org.hibernate.search.exception.SearchException: Exception while searching locally
at
org.infinispan.query.clustered.ClusteredQueryInvoker.unicast(ClusteredQueryInvoker.java:71)
at
org.infinispan.query.clustered.DistributedLazyIterator.fetchValue(DistributedLazyIterator.java:47)
at org.infinispan.query.clustered.DistributedIterator.next(DistributedIterator.java:88)
at
org.infinispan.query.nulls.NullCollectionElementsClusteredTest.lambda$testQueryReturnsNullWhenProjectingCacheValue$5(NullCollectionElementsClusteredTest.java:155)
at org.infinispan.test.TestingUtil.lambda$withTxCallable$13(TestingUtil.java:1492)
at org.infinispan.test.TestingUtil.withTx(TestingUtil.java:1475)
at
org.infinispan.query.nulls.NullCollectionElementsClusteredTest.testQueryReturnsNullWhenProjectingCacheValue(NullCollectionElementsClusteredTest.java:145)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
at
org.testng.internal.MethodInvocationHelper$1.runTestMethod(MethodInvocationHelper.java:230)
at org.infinispan.commons.test.TestNGLongTestsHook.run(TestNGLongTestsHook.java:24)
at
org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:242)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:579)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.privateRun(TestRunner.java:648)
at org.testng.TestRunner.run(TestRunner.java:505)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
at org.testng.SuiteRunner.access$000(SuiteRunner.java:40)
at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:489)
at org.testng.internal.thread.ThreadUtil$1.call(ThreadUtil.java:52)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.util.concurrent.ExecutionException:
org.hibernate.search.exception.SearchException:
org.hibernate.search.exception.SearchException: HSEARCH000338: Incomplete entity
information in a document retrieved from the index: the entity type
('org.infinispan.query.nulls.NullCollectionElementsClusteredTest$Foo') or
identifier ('null') was missing.
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at
org.infinispan.query.clustered.ClusteredQueryInvoker.unicast(ClusteredQueryInvoker.java:67)
... 29 more
Caused by: org.hibernate.search.exception.SearchException:
org.hibernate.search.exception.SearchException: HSEARCH000338: Incomplete entity
information in a document retrieved from the index: the entity type
('org.infinispan.query.nulls.NullCollectionElementsClusteredTest$Foo') or
identifier ('null') was missing.
at
org.infinispan.query.clustered.ClusteredQueryInvoker.lambda$localInvoke$4(ClusteredQueryInvoker.java:120)
... 4 more
Caused by: org.hibernate.search.exception.SearchException: HSEARCH000338: Incomplete
entity information in a document retrieved from the index: the entity type
('org.infinispan.query.nulls.NullCollectionElementsClusteredTest$Foo') or
identifier ('null') was missing.
at org.hibernate.search.query.engine.impl.EntityInfoImpl.getId(EntityInfoImpl.java:74)
at org.infinispan.query.clustered.commandworkers.CQWorker.extractKey(CQWorker.java:88)
at
org.infinispan.query.clustered.commandworkers.CQLazyFetcher.perform(CQLazyFetcher.java:19)
at
org.infinispan.query.clustered.commandworkers.CQCommandType.perform(CQCommandType.java:43)
at
org.infinispan.query.clustered.ClusteredQueryOperation.perform(ClusteredQueryOperation.java:74)
at
org.infinispan.query.clustered.SegmentsClusteredQueryCommand.perform(SegmentsClusteredQueryCommand.java:45)
at
org.infinispan.query.clustered.ClusteredQueryInvoker.lambda$localInvoke$4(ClusteredQueryInvoker.java:118)
... 4 more
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)