org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed

GitHub | DaveChapman | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    OOM -> LockObtainFailedException -> All data lost

    GitHub | 8 months ago | DaveChapman
    org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed

    Root Cause Analysis

    1. org.apache.lucene.store.LockObtainFailedException

      Can't lock shard [lowercasekey-poi-geoshape-1466686817402][4], timed out after 5000ms

      at org.elasticsearch.env.NodeEnvironment$InternalShardLock.acquire()
    2. ElasticSearch
      PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run
      1. org.elasticsearch.env.NodeEnvironment$InternalShardLock.acquire(NodeEnvironment.java:609)
      2. org.elasticsearch.env.NodeEnvironment.shardLock(NodeEnvironment.java:537)
      3. org.elasticsearch.index.IndexService.createShard(IndexService.java:306)
      4. org.elasticsearch.indices.cluster.IndicesClusterStateService.applyInitializingShard(IndicesClusterStateService.java:601)
      5. org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewOrUpdatedShards(IndicesClusterStateService.java:501)
      6. org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:166)
      7. org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:610)
      8. org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:772)
      9. org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231)
      10. org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194)
      10 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames