I am experiencing EsRejectedExecutionException looking like this:
Caused by: org.elasticsearch.common.util.concurrent.EsRejectedExecutionException: rejected execution of org.elasticsearch.common.util.concurrent.TimedRunnable@6115ff55 on QueueResizingEsThreadPoolExecutor[name = thu-match-es1/search, queue capacity = 1000, min queue capacity = 1000, max queue capacity = 1000, frame size = 2000, targeted response rate = 1s, task execution EWMA = 10.6ms, adjustment amount = 50, org.elasticsearch.common.util.concurrent.QueueResizingEsThreadPoolExecutor@4401085f[Running, pool size = 35, active threads = 12, queued tasks = 1000, completed tasks = 31173285]]
My question is: Why do I get a rejected exception when not all available threads (35) are being utilized? According to the stack trace only 12 threads are active. Or have I misread the stack trace?