Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-6995

org.apache.lucene.store.AlreadyClosedException when indexing with AffinityIndexManager

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 9.0.0.Alpha4
    • Embedded Querying
    • None
    • Hide

      Run test org.infinispan.query.affinity.AffinityTopologyChangeTest with NUN_ENTRIES=500 and THREADS_PER_NODE = 3. The test fails roughly 0.5% to 1% of the time

      Show
      Run test org.infinispan.query.affinity.AffinityTopologyChangeTest with NUN_ENTRIES=500 and THREADS_PER_NODE = 3 . The test fails roughly 0.5% to 1% of the time

    Description

      Somehow difficult to reproduce, but during topology changes some entries are not indexed, the indexing backend throws the exception:

      14:07:31,089 ERROR (Hibernate Search sync consumer thread for index entity.119) [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)
              at org.apache.lucene.index.IndexWriter.getAnalyzer(IndexWriter.java:1163)
              at org.hibernate.search.backend.impl.lucene.IndexWriterDelegate.<init>(IndexWriterDelegate.java:39)
              at org.hibernate.search.backend.impl.lucene.AbstractWorkspaceImpl.getIndexWriterDelegate(AbstractWorkspaceImpl.java:206)
              at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.applyUpdates(LuceneBackendQueueTask.java:80)
              at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.run(LuceneBackendQueueTask.java:46)
              at org.hibernate.search.backend.impl.lucene.SyncWorkProcessor$Consumer.applyChangesets(SyncWorkProcessor.java:165)
      
      

      Attachments

        Activity

          People

            gfernand@redhat.com Gustavo Fernandes (Inactive)
            gfernand@redhat.com Gustavo Fernandes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: