ISPN000071: Caught exception when handling command IndexUpdateStreamCommand{cacheName='Cache_name'}: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed

Solution Verified - Updated -

Issue

  • Server log shows below timeout exception.
2019-10-23 17:04:33,969 WARN  [org.infinispan.remoting.inboundhandler.NonTotalOrderPerCacheInboundInvocationHandler] (remote-thread--p2-t25) ISPN000071: Caught exception when handling command DistributedExecuteCommand [cache=Cache 'xxxx'@node3, keys=[], callable=org.infinispan.query.impl.massindex.IndexWorker@2c69c391]: org.infinispan.util.concurrent.TimeoutException: Couldn't retrieve entry an entry from store in allotted timeout: 10 unit: SECONDS
2019-10-23 17:48:26,776 WARN  [org.infinispan.remoting.inboundhandler.NonTotalOrderPerCacheInboundInvocationHandler] (Incoming-2,node1) ISPN000071: Caught exception when handling command IndexUpdateStreamCommand{cacheName='xxxx'}: 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:217)
    at org.hibernate.search.backend.impl.lucene.LuceneBackendTaskStreamer.doWork(LuceneBackendTaskStreamer.java:44)
    at org.hibernate.search.backend.impl.lucene.WorkspaceHolder.applyStreamWork(WorkspaceHolder.java:74)
    at org.infinispan.query.indexmanager.LocalIndexingBackend.applyStreamWork(LocalIndexingBackend.java:37)
    at org.infinispan.query.indexmanager.InfinispanBackendQueueProcessor.applyStreamWork(InfinispanBackendQueueProcessor.java:95)
    at org.hibernate.search.indexes.spi.DirectoryBasedIndexManager.performStreamOperation(DirectoryBasedIndexManager.java:103)
    at org.infinispan.query.indexmanager.IndexUpdateStreamCommand.perform(IndexUpdateStreamCommand.java:37)

Environment

  • RHDG 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content