[JBoss JIRA] (ISPN-6978) AffinityIndexManager does not work on transactional caches
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-6978?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes updated ISPN-6978:
------------------------------------
Status: Open (was: New)
> AffinityIndexManager does not work on transactional caches
> ----------------------------------------------------------
>
> Key: ISPN-6978
> URL: https://issues.jboss.org/browse/ISPN-6978
> Project: Infinispan
> Issue Type: Bug
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
>
> Exception thrown:
> {noformat}
> 12:13:52,946 ERROR (testng-ClusteredCacheWithAffinityIndexManagerTx) [InvocationContextInterceptor] ISPN000136: Error executing command GetKeyValueCommand, writing keys []
> java.lang.IllegalStateException: Transaction TransactionImple < ac, BasicAction: 0:ffff7f000001:af11:57c02470:0 status: ActionStatus.COMMITTED > is not in a valid state to be invoking cache operations on.
> at org.infinispan.interceptors.impl.TxInterceptor.enlist(TxInterceptor.java:437)
> at org.infinispan.interceptors.impl.TxInterceptor.enlistIfNeeded(TxInterceptor.java:395)
> at org.infinispan.interceptors.impl.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:376)
> at org.infinispan.interceptors.impl.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:83)
> at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:41)
> at org.infinispan.interceptors.DDAsyncInterceptor.visitCommand(DDAsyncInterceptor.java:53)
> at org.infinispan.interceptors.impl.BaseAsyncInvocationContext.invokeInterceptorsSync(BaseAsyncInvocationContext.java:307)
> at org.infinispan.interceptors.impl.BaseAsyncInvocationContext.forkInvocationSync(BaseAsyncInvocationContext.java:98)
> at org.infinispan.interceptors.impl.BaseAsyncInvocationContext.invokeForkAndHandlerSync(BaseAsyncInvocationContext.java:474)
> {noformat}
> The Hibernate Search engine applies work to index after the transaction is committed, and since the {{AffinityIndexManager}} lazily initializes its shards, it tries to call cache operations on a tx commited state which is not allowed on Infinispan
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months
[JBoss JIRA] (ISPN-6978) AffinityIndexManager does not work on transactional caches
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-6978?page=com.atlassian.jira.plugin.... ]
Work on ISPN-6978 started by Gustavo Fernandes.
-----------------------------------------------
> AffinityIndexManager does not work on transactional caches
> ----------------------------------------------------------
>
> Key: ISPN-6978
> URL: https://issues.jboss.org/browse/ISPN-6978
> Project: Infinispan
> Issue Type: Bug
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
>
> Exception thrown:
> {noformat}
> 12:13:52,946 ERROR (testng-ClusteredCacheWithAffinityIndexManagerTx) [InvocationContextInterceptor] ISPN000136: Error executing command GetKeyValueCommand, writing keys []
> java.lang.IllegalStateException: Transaction TransactionImple < ac, BasicAction: 0:ffff7f000001:af11:57c02470:0 status: ActionStatus.COMMITTED > is not in a valid state to be invoking cache operations on.
> at org.infinispan.interceptors.impl.TxInterceptor.enlist(TxInterceptor.java:437)
> at org.infinispan.interceptors.impl.TxInterceptor.enlistIfNeeded(TxInterceptor.java:395)
> at org.infinispan.interceptors.impl.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:376)
> at org.infinispan.interceptors.impl.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:83)
> at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:41)
> at org.infinispan.interceptors.DDAsyncInterceptor.visitCommand(DDAsyncInterceptor.java:53)
> at org.infinispan.interceptors.impl.BaseAsyncInvocationContext.invokeInterceptorsSync(BaseAsyncInvocationContext.java:307)
> at org.infinispan.interceptors.impl.BaseAsyncInvocationContext.forkInvocationSync(BaseAsyncInvocationContext.java:98)
> at org.infinispan.interceptors.impl.BaseAsyncInvocationContext.invokeForkAndHandlerSync(BaseAsyncInvocationContext.java:474)
> {noformat}
> The Hibernate Search engine applies work to index after the transaction is committed, and since the {{AffinityIndexManager}} lazily initializes its shards, it tries to call cache operations on a tx commited state which is not allowed on Infinispan
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months
[JBoss JIRA] (ISPN-6978) AffinityIndexManager does not work on transactional caches
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-6978?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes updated ISPN-6978:
------------------------------------
Description:
Exception thrown:
{noformat}
12:13:52,946 ERROR (testng-ClusteredCacheWithAffinityIndexManagerTx) [InvocationContextInterceptor] ISPN000136: Error executing command GetKeyValueCommand, writing keys []
java.lang.IllegalStateException: Transaction TransactionImple < ac, BasicAction: 0:ffff7f000001:af11:57c02470:0 status: ActionStatus.COMMITTED > is not in a valid state to be invoking cache operations on.
at org.infinispan.interceptors.impl.TxInterceptor.enlist(TxInterceptor.java:437)
at org.infinispan.interceptors.impl.TxInterceptor.enlistIfNeeded(TxInterceptor.java:395)
at org.infinispan.interceptors.impl.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:376)
at org.infinispan.interceptors.impl.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:83)
at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:41)
at org.infinispan.interceptors.DDAsyncInterceptor.visitCommand(DDAsyncInterceptor.java:53)
at org.infinispan.interceptors.impl.BaseAsyncInvocationContext.invokeInterceptorsSync(BaseAsyncInvocationContext.java:307)
at org.infinispan.interceptors.impl.BaseAsyncInvocationContext.forkInvocationSync(BaseAsyncInvocationContext.java:98)
at org.infinispan.interceptors.impl.BaseAsyncInvocationContext.invokeForkAndHandlerSync(BaseAsyncInvocationContext.java:474)
{noformat}
The Hibernate Search engine applies work to index after the transaction is committed, and since the {{AffinityIndexManager}} lazily initializes its shards, it tries to calls cache operations on a tx commited state which is not allowed on Infinispan
was:
{noformat}
12:13:52,946 ERROR (testng-ClusteredCacheWithAffinityIndexManagerTx) [InvocationContextInterceptor] ISPN000136: Error executing command GetKeyValueCommand, writing keys []
java.lang.IllegalStateException: Transaction TransactionImple < ac, BasicAction: 0:ffff7f000001:af11:57c02470:0 status: ActionStatus.COMMITTED > is not in a valid state to be invoking cache operations on.
at org.infinispan.interceptors.impl.TxInterceptor.enlist(TxInterceptor.java:437)
at org.infinispan.interceptors.impl.TxInterceptor.enlistIfNeeded(TxInterceptor.java:395)
at org.infinispan.interceptors.impl.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:376)
at org.infinispan.interceptors.impl.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:83)
at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:41)
at org.infinispan.interceptors.DDAsyncInterceptor.visitCommand(DDAsyncInterceptor.java:53)
at org.infinispan.interceptors.impl.BaseAsyncInvocationContext.invokeInterceptorsSync(BaseAsyncInvocationContext.java:307)
at org.infinispan.interceptors.impl.BaseAsyncInvocationContext.forkInvocationSync(BaseAsyncInvocationContext.java:98)
at org.infinispan.interceptors.impl.BaseAsyncInvocationContext.invokeForkAndHandlerSync(BaseAsyncInvocationContext.java:474)
{noformat}
> AffinityIndexManager does not work on transactional caches
> ----------------------------------------------------------
>
> Key: ISPN-6978
> URL: https://issues.jboss.org/browse/ISPN-6978
> Project: Infinispan
> Issue Type: Bug
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
>
> Exception thrown:
> {noformat}
> 12:13:52,946 ERROR (testng-ClusteredCacheWithAffinityIndexManagerTx) [InvocationContextInterceptor] ISPN000136: Error executing command GetKeyValueCommand, writing keys []
> java.lang.IllegalStateException: Transaction TransactionImple < ac, BasicAction: 0:ffff7f000001:af11:57c02470:0 status: ActionStatus.COMMITTED > is not in a valid state to be invoking cache operations on.
> at org.infinispan.interceptors.impl.TxInterceptor.enlist(TxInterceptor.java:437)
> at org.infinispan.interceptors.impl.TxInterceptor.enlistIfNeeded(TxInterceptor.java:395)
> at org.infinispan.interceptors.impl.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:376)
> at org.infinispan.interceptors.impl.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:83)
> at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:41)
> at org.infinispan.interceptors.DDAsyncInterceptor.visitCommand(DDAsyncInterceptor.java:53)
> at org.infinispan.interceptors.impl.BaseAsyncInvocationContext.invokeInterceptorsSync(BaseAsyncInvocationContext.java:307)
> at org.infinispan.interceptors.impl.BaseAsyncInvocationContext.forkInvocationSync(BaseAsyncInvocationContext.java:98)
> at org.infinispan.interceptors.impl.BaseAsyncInvocationContext.invokeForkAndHandlerSync(BaseAsyncInvocationContext.java:474)
> {noformat}
> The Hibernate Search engine applies work to index after the transaction is committed, and since the {{AffinityIndexManager}} lazily initializes its shards, it tries to calls cache operations on a tx commited state which is not allowed on Infinispan
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months
[JBoss JIRA] (ISPN-6978) AffinityIndexManager does not work on transactional caches
by Gustavo Fernandes (JIRA)
Gustavo Fernandes created ISPN-6978:
---------------------------------------
Summary: AffinityIndexManager does not work on transactional caches
Key: ISPN-6978
URL: https://issues.jboss.org/browse/ISPN-6978
Project: Infinispan
Issue Type: Bug
Reporter: Gustavo Fernandes
Assignee: Gustavo Fernandes
{noformat}
12:13:52,946 ERROR (testng-ClusteredCacheWithAffinityIndexManagerTx) [InvocationContextInterceptor] ISPN000136: Error executing command GetKeyValueCommand, writing keys []
java.lang.IllegalStateException: Transaction TransactionImple < ac, BasicAction: 0:ffff7f000001:af11:57c02470:0 status: ActionStatus.COMMITTED > is not in a valid state to be invoking cache operations on.
at org.infinispan.interceptors.impl.TxInterceptor.enlist(TxInterceptor.java:437)
at org.infinispan.interceptors.impl.TxInterceptor.enlistIfNeeded(TxInterceptor.java:395)
at org.infinispan.interceptors.impl.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:376)
at org.infinispan.interceptors.impl.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:83)
at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:41)
at org.infinispan.interceptors.DDAsyncInterceptor.visitCommand(DDAsyncInterceptor.java:53)
at org.infinispan.interceptors.impl.BaseAsyncInvocationContext.invokeInterceptorsSync(BaseAsyncInvocationContext.java:307)
at org.infinispan.interceptors.impl.BaseAsyncInvocationContext.forkInvocationSync(BaseAsyncInvocationContext.java:98)
at org.infinispan.interceptors.impl.BaseAsyncInvocationContext.invokeForkAndHandlerSync(BaseAsyncInvocationContext.java:474)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months
[JBoss JIRA] (ISPN-6977) NumOwnersNodeCrashInSequenceTest random failures
by Dan Berindei (JIRA)
[ https://issues.jboss.org/browse/ISPN-6977?page=com.atlassian.jira.plugin.... ]
Dan Berindei updated ISPN-6977:
-------------------------------
Status: Open (was: New)
> NumOwnersNodeCrashInSequenceTest random failures
> ------------------------------------------------
>
> Key: ISPN-6977
> URL: https://issues.jboss.org/browse/ISPN-6977
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 9.0.0.Alpha4, 8.2.4.Final
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Critical
> Labels: testsuite_stability
> Fix For: 9.0.0.Beta1
>
>
> The test (and {{NumOwnersNodeStopInSequenceTest}} as well) uses {{StateSequencerUtil.advanceOnInboundRpc()}}, which replaces the {{PerCacheInboundInvocationHandler}} and rewires all the components.
> The problem is that rewiring {{StateConsumerImpl}} causes it to create a new {{SemaphoreCompletionService}}, but there's no synchronization when reading the field, a "background" task could finish on another thread and release the permit on the old {{SemaphoreCompletionService}} instance.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months
[JBoss JIRA] (ISPN-6977) NumOwnersNodeCrashInSequenceTest random failures
by Dan Berindei (JIRA)
Dan Berindei created ISPN-6977:
----------------------------------
Summary: NumOwnersNodeCrashInSequenceTest random failures
Key: ISPN-6977
URL: https://issues.jboss.org/browse/ISPN-6977
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 8.2.4.Final, 9.0.0.Alpha4
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Critical
Fix For: 9.0.0.Beta1
The test (and {{NumOwnersNodeStopInSequenceTest}} as well) uses {{StateSequencerUtil.advanceOnInboundRpc()}}, which replaces the {{PerCacheInboundInvocationHandler}} and rewires all the components.
The problem is that rewiring {{StateConsumerImpl}} causes it to create a new {{SemaphoreCompletionService}}, but there's no synchronization when reading the field, a "background" task could finish on another thread and release the permit on the old {{SemaphoreCompletionService}} instance.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months