java.lang.IllegalArgumentException: maxThreadCount should be <= maxMergeCount (= 7)

GitHub | joshuar | 7 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

    Need to validate index.merge.scheduler.max_thread_count input?

    GitHub | 7 months ago | joshuar
    java.lang.IllegalArgumentException: maxThreadCount should be <= maxMergeCount (= 7)
  2. 0

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

    GitHub | 6 months ago | rayward
    java.lang.IllegalArgumentException: maxThreadCount should be <= maxMergeCount (= 7)

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      maxThreadCount should be <= maxMergeCount (= 7)

      at org.apache.lucene.index.ConcurrentMergeScheduler.setMaxMergesAndThreads()
    2. Lucene
      ConcurrentMergeScheduler.setMaxMergesAndThreads
      1. org.apache.lucene.index.ConcurrentMergeScheduler.setMaxMergesAndThreads(ConcurrentMergeScheduler.java:154)
      1 frame
    3. ElasticSearch
      PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run
      1. org.elasticsearch.index.engine.ElasticsearchConcurrentMergeScheduler.refreshConfig(ElasticsearchConcurrentMergeScheduler.java:176)
      2. org.elasticsearch.index.engine.InternalEngine.onSettingsChanged(InternalEngine.java:1272)
      3. org.elasticsearch.index.shard.IndexShard$ApplyRefreshSettings.onRefreshSettings(IndexShard.java:1325)
      4. org.elasticsearch.index.settings.IndexSettingsService.refreshSettings(IndexSettingsService.java:54)
      5. org.elasticsearch.indices.cluster.IndicesClusterStateService.applySettings(IndicesClusterStateService.java:322)
      6. org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:169)
      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
    4. 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