# Bulk request is throwing rejected execution exception

**URL:** <https://discuss.elastic.co/t/bulk-request-is-throwing-rejected-execution-exception/207821>\
**Category:** Elasticsearch\
**Created:** [November 14, 2019, 6:47am UTC](https://discuss.elastic.co/t/bulk-request-is-throwing-rejected-execution-exception/207821 "2019-11-14T06:47:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Balu\_P](https://avatars.discourse-cdn.com/v4/letter/b/3ec8ea/32.png) [@Balu\_P](https://discuss.elastic.co/u/Balu_P)\
**Post date:** [November 14, 2019, 6:47am UTC](https://discuss.elastic.co/t/bulk-request-is-throwing-rejected-execution-exception/207821/1 "2019-11-14T06:47:51Z")

</div>

{"reason":"rejected execution of processing of [6013644][indices:data/write/bulk[s][p]]: request: BulkShardRequest [[index-test24][3]] containing [52] requests, target allocation id: HwDviwdxRRexbw-sT7B8WQ, primary term: 3 on EsThreadPoolExecutor[name = [one.cloud.com/write](http://one.cloud.com/write), queue capacity = 500, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@1e05480d[Running, pool size = 32, active threads = 32, queued tasks = 500, completed tasks = 782262]]","type":"es\_rejected\_execution\_exception"}

h/w: 6 nodes \* 32 cores \* 120 shards

heavily on parent-child relationship unto 4 levels deep with proper routing of the data by the parent ids, I'm seeing the above exception quiet often

but I've a different cluster of size 17 nodes \* 80 shards which indexes just the straight time series data without any relationships (~ upto 40k/sec), I don't see any issues with the indexing and the cluster is also stable

Please suggest

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 14, 2019, 6:53am UTC](https://discuss.elastic.co/t/bulk-request-is-throwing-rejected-execution-exception/207821/2 "2019-11-14T06:53:31Z")

</div>

If you have a reasonably large number of threads indexing into Elasticsearch in parallel and each bulk request contains a mix of routing IDs, [this blog post](https://www.elastic.co/blog/why-am-i-seeing-bulk-rejections-in-my-elasticsearch-cluster) might help explain the rejections.

---

<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:** [December 12, 2019, 6:53am UTC](https://discuss.elastic.co/t/bulk-request-is-throwing-rejected-execution-exception/207821/3 "2019-12-12T06:53:32Z")

</div>

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