[infinispan-issues] [JBoss JIRA] (ISPN-6981) AffinityIndexManager sometimes fails to index document in async mode

Gustavo Fernandes (JIRA) issues at jboss.org
Wed Aug 31 06:56:00 EDT 2016


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

Gustavo Fernandes commented on ISPN-6981:
-----------------------------------------

{{java.io.IOException: This lock is no longer being held}} could be caused by the same reason above, in this case the changes are being applied between the time the lock is removed and the index is closed

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


More information about the infinispan-issues mailing list