[JBoss JIRA] (ISPN-6947) Indexing mode not compatible with multiple entities per cache
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-6947?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes updated ISPN-6947:
------------------------------------
Git Pull Request: (was: https://github.com/infinispan/infinispan/pull/4504)
> Indexing mode not compatible with multiple entities per cache
> -------------------------------------------------------------
>
> Key: ISPN-6947
> URL: https://issues.jboss.org/browse/ISPN-6947
> Project: Infinispan
> Issue Type: Bug
> Components: Embedded Querying
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
>
> Consider a cache composed of two entities A and B, entity A is stored on RAM and entity B on Infinispan itself. The configuration to achieve that is below:
> {noformat}
> cacheCfg.indexing()
> .index(Index.ALL)
> .addIndexedEntity(A.class)
> .addIndexedEntity(B.class)
> .addProperty("A.directory_provider", "ram")
> .addProperty("A.indexmanager", "org.infinispan.query.indexmanager.InfinispanIndexManager")
> {noformat}
> The configuration Index.ALL only makes sense to RAM directory, while for InfinispanIndexManager it'd cause redundant indexing. The indexing mode should not be at cache level but at "index" level
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months
[JBoss JIRA] (ISPN-6981) AffinityIndexManager sometimes fails to index document in async mode
by Gustavo Fernandes (JIRA)
Gustavo Fernandes created ISPN-6981:
---------------------------------------
Summary: AffinityIndexManager sometimes fails to index document in async mode
Key: ISPN-6981
URL: https://issues.jboss.org/browse/ISPN-6981
Project: Infinispan
Issue Type: Bug
Components: Embedded Querying
Affects Versions: 9.0.0.Alpha4
Reporter: Gustavo Fernandes
Assignee: Gustavo Fernandes
During topology changes in async mode ("<index>.worker.execution" set to "async"), the {{AfinityIndexManager}} sometimes fails to index entries. Some of errors thrown:
{noformat}
19:06:04,638 ERROR (Hibernate Search: Index updates queue processor for index entity.5-1) [LogErrorHandler] HSEARCH000058: Exception occurred org.apache.lucene.store.LockObtainFailedException: lock instance already assigned
{noformat}
{noformat}
18:53:59,553 ERROR (Hibernate Search: Index updates queue processor for index entity.2-1) [LuceneBackendQueueTask] HSEARCH000073: Error in backend
org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:720)
at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:734)
{noformat}
{noformat}
18:55:31,328 ERROR (Hibernate Search: Commit Scheduler for index entity.143-1) [AffinityErrorHandler] HSEARCH000117: IOException on the IndexWriter
java.io.IOException: This lock is no longer being held
at org.infinispan.lucene.impl.BaseLuceneLock.ensureValid(BaseLuceneLock.java:89)
at org.apache.lucene.store.LockValidatingDirectoryWrapper.createOutput(LockValidatingDirectoryWrapper.java:43)
at org.apache.lucene.store.TrackingDirectoryWrapper.createOutput(TrackingDirectoryWrapper.java:43)
at org.apache.lucene.codecs.lucene50.Lucene50PostingsWriter.<init>(Lucene50PostingsWriter.java:105)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months
[JBoss JIRA] (ISPN-6980) Provide a manual method to sync sites
by Alan Field (JIRA)
Alan Field created ISPN-6980:
--------------------------------
Summary: Provide a manual method to sync sites
Key: ISPN-6980
URL: https://issues.jboss.org/browse/ISPN-6980
Project: Infinispan
Issue Type: Feature Request
Components: Cross-Site Replication
Affects Versions: 8.2.4.Final, 9.0.0.Alpha4
Reporter: Alan Field
When switching between sites and especially when the replication between sites it async, cache operators should be able to sync any changes that haven't been replicated before taking the site offline.
--
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:
------------------------------------
Component/s: Embedded Querying
> AffinityIndexManager does not work on transactional caches
> ----------------------------------------------------------
>
> Key: ISPN-6978
> URL: https://issues.jboss.org/browse/ISPN-6978
> Project: Infinispan
> Issue Type: Bug
> Components: Embedded Querying
> Affects Versions: 9.0.0.Alpha4
> 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:
------------------------------------
Status: Pull Request Sent (was: Coding In Progress)
Git Pull Request: https://github.com/infinispan/infinispan/pull/4534
> AffinityIndexManager does not work on transactional caches
> ----------------------------------------------------------
>
> Key: ISPN-6978
> URL: https://issues.jboss.org/browse/ISPN-6978
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.0.0.Alpha4
> 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:
------------------------------------
Affects Version/s: 9.0.0.Alpha4
> AffinityIndexManager does not work on transactional caches
> ----------------------------------------------------------
>
> Key: ISPN-6978
> URL: https://issues.jboss.org/browse/ISPN-6978
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.0.0.Alpha4
> 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 call cache operations on a tx commited state which is not allowed on Infinispan
was:
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
> 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