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

Exception is thrown while rebuilding an index

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Hi,

      while playing with index management on console I have faced the following exception and even was able to make a screen recording.

      The actions that I do is: Rebuilding indexing -> Going to main entries page -> GOing to index management page -> Rebuilding indexing -> Going back to entries page. I do this actions just in a circle and sometimes the exception is thrown on server side which is also shown in the console as a screen after rebuilding index. On functionality this seems to have no impact as the indexing succeeds in the end but I am not sure if it is ok to have that exception there.

      2023-05-25 13:01:56,104 INFO  (non-blocking-thread--p2-t22) [org.infinispan.rest.resources.SearchAdminResource] ISPN012020: MassIndexer started
      2023-05-25 13:01:56,106 INFO  (blocking-thread--p3-t3) [org.infinispan.query.impl.massindex.IndexUpdater] ISPN014016: Purging instances of '[class [B]' from the index
      2023-05-25 13:01:56,130 ERROR (non-blocking-thread--p2-t24) [org.infinispan.rest.RestRequestHandler] ISPN012005: An error occurred while responding to the client java.util.concurrent.CompletionException: org.hibernate.search.util.common.SearchException: HSEARCH000563: Unable to submit work to 'Lucene index management orchestrator for index 'org.infinispan.Person'': this orchestrator is stopped. The work has been discarded.
          at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
          at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
          at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1159)
          at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
          at java.base/java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:614)
          at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:844)
          at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
          at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)
          at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167)
          at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)
          at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:403)
          at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
          at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
          at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: org.hibernate.search.util.common.SearchException: HSEARCH000563: Unable to submit work to 'Lucene index management orchestrator for index 'org.infinispan.Person'': this orchestrator is stopped. The work has been discarded.
          at org.hibernate.search.engine.backend.orchestration.spi.AbstractWorkOrchestrator.submit(AbstractWorkOrchestrator.java:133)
          at org.hibernate.search.backend.lucene.orchestration.impl.LuceneParallelWorkOrchestratorImpl.submit(LuceneParallelWorkOrchestratorImpl.java:41)
          at org.hibernate.search.backend.lucene.orchestration.impl.LuceneParallelWorkOrchestrator.submit(LuceneParallelWorkOrchestrator.java:31)
          at org.hibernate.search.backend.lucene.schema.management.impl.LuceneIndexSchemaManager.computeSizeInBytes(LuceneIndexSchemaManager.java:70)
          at org.hibernate.search.backend.lucene.index.impl.LuceneIndexManagerImpl.computeSizeInBytesAsync(LuceneIndexManagerImpl.java:210)
          at org.hibernate.search.backend.lucene.index.impl.LuceneIndexManagerImpl.computeSizeInBytesAsync(LuceneIndexManagerImpl.java:47)
          at org.infinispan.query.stats.impl.LocalIndexStatistics.lambda$indexInfos$4(LocalIndexStatistics.java:72)
          at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150)
          ... 11 more2023-05-25 13:01:56,141 INFO  (blocking-thread--p3-t3) [org.infinispan.query.impl.massindex.IndexUpdater] ISPN014017: Flushing index '[class [B]'
      2023-05-25 13:01:56,178 INFO  (blocking-thread--p3-t3) [org.infinispan.query.impl.massindex.IndexUpdater] ISPN014017: Flushing index '[class [B]'
      2023-05-25 13:01:56,179 INFO  (blocking-thread--p3-t3) [org.infinispan.query.impl.massindex.MassIndexerProgressMonitor] ISPN014014: Reindexed 5 entities
      2023-05-25 13:01:56,179 INFO  (blocking-thread--p3-t3) [org.infinispan.rest.resources.SearchAdminResource] ISPN012021: MassIndexer completed successfully 

      also please take a look at the screenrecording, I am able to reproduce the exception there 2 times during the first 40 seconds.

              fercoli@redhat.com Fabio Massimo Ercoli
              amanukya@redhat.com Anna Manukyan
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: