org.apache.lucene.store.AlreadyClosedException: translog [2] is already closed

GitHub | rayward | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    index.merge.scheduler.max_thread_count is not validated correctly, can break indexing

    GitHub | 9 months ago | rayward
    org.apache.lucene.store.AlreadyClosedException: translog [2] is already closed

    Root Cause Analysis

    1. org.apache.lucene.store.AlreadyClosedException

      translog [2] is already closed

      at org.elasticsearch.index.translog.TranslogWriter.ensureOpen()
    2. ElasticSearch
      ThreadPool$LoggingRunnable.run
      1. org.elasticsearch.index.translog.TranslogWriter.ensureOpen(TranslogWriter.java:329)
      2. org.elasticsearch.index.translog.BufferingTranslogWriter.updateBufferSize(BufferingTranslogWriter.java:143)
      3. org.elasticsearch.index.translog.Translog.updateBuffer(Translog.java:406)
      4. org.elasticsearch.index.shard.IndexShard.updateBufferSize(IndexShard.java:1164)
      5. org.elasticsearch.indices.memory.IndexingMemoryController.updateShardBuffers(IndexingMemoryController.java:232)
      6. org.elasticsearch.indices.memory.IndexingMemoryController$ShardsIndicesStatusChecker.run(IndexingMemoryController.java:286)
      7. org.elasticsearch.threadpool.ThreadPool$ReschedulingRunnable.doRun(ThreadPool.java:1057)
      8. org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
      9. org.elasticsearch.threadpool.ThreadPool$LoggingRunnable.run(ThreadPool.java:668)
      9 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      7. java.lang.Thread.run(Thread.java:745)
      7 frames