# Rejected execution of org.elasticsearch.transport.TransportService

**URL:** <https://discuss.elastic.co/t/rejected-execution-of-org-elasticsearch-transport-transportservice/92195>\
**Category:** Elasticsearch\
**Created:** [July 7, 2017, 4:29am UTC](https://discuss.elastic.co/t/rejected-execution-of-org-elasticsearch-transport-transportservice/92195 "2017-07-07T04:29:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandy2428](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sandy2428/32/46165_2.png) [@sandy2428](https://discuss.elastic.co/u/sandy2428)\
**Post date:** [July 7, 2017, 4:29am UTC](https://discuss.elastic.co/t/rejected-execution-of-org-elasticsearch-transport-transportservice/92195/1 "2017-07-07T04:29:52Z")

</div>

I am getting the below error in my environment. Initially td-agent to push the logs for some time, but getting the below after a moment. Any help is greatly helpful...  
Did a lot of research but couldnt find the solution anywhere

```auto
"error"=>{"type"=>"es_rejected_execution_exception", "reason"=>"rejected execution of org.elasticsearch.transport.TransportService$7@41fd900a on EsThreadPoolExecutor[bulk, queue capacity = 200, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@6462bef6[Running, pool size = 8, active threads = 8, queued tasks = 247, completed tasks = 9108068]]"}}}, {"index"=>{"_index"=>"test-logs", "_type"=>"fluentd", "_id"=>"AV0T51EQYjB5DZCGbKpI", "status"=>429, "error"=>{"type"=>"es_rejected_execution_exception", "reason"=>"rejected execution of org.elasticsearch.transport.TransportService$7@41fd900a on EsThreadPoolExecutor[bulk, queue capacity = 200, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@6462bef6[Running, pool size = 8, active threads = 8, queued tasks = 247, completed tasks = 9108068]]"}}}]}

```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 12, 2017, 8:55am UTC](https://discuss.elastic.co/t/rejected-execution-of-org-elasticsearch-transport-transportservice/92195/2 "2017-07-12T08:55:35Z")

</div>

Your client (I don't know what it is) needs to slow down and retry when elasticsearch seems to be overloaded.  
May be adjust the size of a single bulk request?

How many documents are you sending per bulk request?

Here the bulk queue size is 200 but you tried to queue more than that.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 9, 2017, 8:55am UTC](https://discuss.elastic.co/t/rejected-execution-of-org-elasticsearch-transport-transportservice/92195/3 "2017-08-09T08:55:49Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
