[JBoss JIRA] (ISPN-11299) Stale values can be indexed during State Transfer
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-11299?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes updated ISPN-11299:
-------------------------------------
Status: Pull Request Sent (was: Coding In Progress)
Git Pull Request: https://github.com/infinispan/infinispan/pull/8072
> Stale values can be indexed during State Transfer
> -------------------------------------------------
>
> Key: ISPN-11299
> URL: https://issues.redhat.com/browse/ISPN-11299
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 10.1.1.Final, 11.0.0.Alpha1
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Priority: Major
>
> If an operation is discarded during state transfer because it was already modified locally, the QueryInterceptor still propagates it to the index, leaving the index out of sync.
> Sequence of events:
> * T1: State Transfer starts
> * T2: The EWI (EntryWrappingInterceptor) starts tracking all non-state-transfer operations
> * T3: An entry is added locally
> * T4: EWI stores the key
> * T5: The same key arrives from State Transfer
> * T6: QueryInterceptor indexes it (The QI is installed after EWI but indexing happens before storing the entry in the data container)
> * T7: The entry operation is not committed in the data container since it was tracked before as DiscardPolicy{discardStateTransfer=true, discardXSiteStateTransfer=false}
> * T8: The index and the data container differ, since the index applied the state transfer operation when the data container didn't
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years
[JBoss JIRA] (ISPN-11305) Broadcasted queries with projections fail for LAZY iterator
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-11305?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes updated ISPN-11305:
-------------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/8071
> 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: 11.0.0.Alpha2
> 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)
6 years
[JBoss JIRA] (ISPN-11305) Broadcasted queries with projections fail for LAZY iterator
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-11305?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes updated ISPN-11305:
-------------------------------------
Affects Version/s: 11.0.0.Alpha2
(was: 10.1.2.Final)
(was: 11.0.0.Alpha1)
> 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: 11.0.0.Alpha2
> 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)
6 years
[JBoss JIRA] (ISPN-11305) Broadcasted queries with projections fail for LAZY iterator
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-11305?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes updated ISPN-11305:
-------------------------------------
Status: Open (was: New)
> 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: 11.0.0.Alpha2
> 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)
6 years
[JBoss JIRA] (ISPN-11489) TransactionCoordinator updated for non blocking
by Will Burns (Jira)
[ https://issues.redhat.com/browse/ISPN-11489?page=com.atlassian.jira.plugi... ]
Work on ISPN-11489 started by Will Burns.
-----------------------------------------
> TransactionCoordinator updated for non blocking
> -----------------------------------------------
>
> Key: ISPN-11489
> URL: https://issues.redhat.com/browse/ISPN-11489
> Project: Infinispan
> Issue Type: Sub-task
> Reporter: Will Burns
> Assignee: Will Burns
> Priority: Major
> Fix For: 11.0.0.Dev03
>
>
> TransactionCoordinator is utilized when working with transactions. Unfortunately due to transaction API being inherently blocking, we need to make some exceptions to how this is handled.
> # TransactionCoordinator should only be invokable by a blocking method, the inverse of the PersistenceManagerImpl
> # We should invoke all the non blocking code of TransactionCoordinator in a non blocking thread and then block on its completion in the blocking thread.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years
[JBoss JIRA] (ISPN-11489) TransactionCoordinator updated for non blocking
by Will Burns (Jira)
[ https://issues.redhat.com/browse/ISPN-11489?page=com.atlassian.jira.plugi... ]
Will Burns updated ISPN-11489:
------------------------------
Fix Version/s: 11.0.0.Dev03
> TransactionCoordinator updated for non blocking
> -----------------------------------------------
>
> Key: ISPN-11489
> URL: https://issues.redhat.com/browse/ISPN-11489
> Project: Infinispan
> Issue Type: Sub-task
> Reporter: Will Burns
> Assignee: Will Burns
> Priority: Major
> Fix For: 11.0.0.Dev03
>
>
> TransactionCoordinator is utilized when working with transactions. Unfortunately due to transaction API being inherently blocking, we need to make some exceptions to how this is handled.
> # TransactionCoordinator should only be invokable by a blocking method, the inverse of the PersistenceManagerImpl
> # We should invoke all the non blocking code of TransactionCoordinator in a non blocking thread and then block on its completion in the blocking thread.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years
[JBoss JIRA] (ISPN-11489) TransactionCoordinator updated for non blocking
by Will Burns (Jira)
[ https://issues.redhat.com/browse/ISPN-11489?page=com.atlassian.jira.plugi... ]
Will Burns updated ISPN-11489:
------------------------------
Status: Open (was: New)
> TransactionCoordinator updated for non blocking
> -----------------------------------------------
>
> Key: ISPN-11489
> URL: https://issues.redhat.com/browse/ISPN-11489
> Project: Infinispan
> Issue Type: Sub-task
> Reporter: Will Burns
> Assignee: Will Burns
> Priority: Major
> Fix For: 11.0.0.Dev03
>
>
> TransactionCoordinator is utilized when working with transactions. Unfortunately due to transaction API being inherently blocking, we need to make some exceptions to how this is handled.
> # TransactionCoordinator should only be invokable by a blocking method, the inverse of the PersistenceManagerImpl
> # We should invoke all the non blocking code of TransactionCoordinator in a non blocking thread and then block on its completion in the blocking thread.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years