org.apache.lucene.store.AlreadyClosedException: refusing to delete any files: this IndexWriter hit an unrecoverable exception

Stack Overflow | John | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Site queries fail after bringing upgraded elasticsearch cluster online

    Stack Overflow | 7 months ago | John
    org.apache.lucene.store.AlreadyClosedException: refusing to delete any files: this IndexWriter hit an unrecoverable exception

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at org.apache.lucene.index.DefaultIndexingChain.getOrAddField()
    2. Lucene
      IndexWriter.updateDocuments
      1. org.apache.lucene.index.DefaultIndexingChain.getOrAddField(DefaultIndexingChain.java:489)
      2. org.apache.lucene.index.DefaultIndexingChain.processField(DefaultIndexingChain.java:342)
      3. org.apache.lucene.index.DefaultIndexingChain.processDocument(DefaultIndexingChain.java:300)
      4. org.apache.lucene.index.DocumentsWriterPerThread.updateDocuments(DocumentsWriterPerThread.java:271)
      5. org.apache.lucene.index.DocumentsWriter.updateDocuments(DocumentsWriter.java:420)
      6. org.apache.lucene.index.IndexWriter.updateDocuments(IndexWriter.java:1204)
      6 frames
    3. ElasticSearch
      AbstractRunnable.run
      1. org.elasticsearch.index.engine.InternalEngine.innerIndex(InternalEngine.java:527)
      2. org.elasticsearch.index.engine.InternalEngine.index(InternalEngine.java:444)
      3. org.elasticsearch.index.shard.TranslogRecoveryPerformer.performRecoveryOperation(TranslogRecoveryPerformer.java:169)
      4. org.elasticsearch.index.shard.TranslogRecoveryPerformer.performBatchRecovery(TranslogRecoveryPerformer.java:87)
      5. org.elasticsearch.index.shard.IndexShard.performBatchRecovery(IndexShard.java:859)
      6. org.elasticsearch.indices.recovery.RecoveryTarget$TranslogOperationsRequestHandler.messageReceived(RecoveryTarget.java:306)
      7. org.elasticsearch.indices.recovery.RecoveryTarget$TranslogOperationsRequestHandler.messageReceived(RecoveryTarget.java:295)
      8. org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.doRun(MessageChannelHandler.java:299)
      9. org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
      9 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      3. java.lang.Thread.run(Unknown Source)
      3 frames