# Bulk index error during ingestion \[Challenge\]

**URL:** <https://discuss.elastic.co/t/bulk-index-error-during-ingestion-challenge/131933>\
**Category:** Elasticsearch\
**Created:** [May 15, 2018, 12:32pm UTC](https://discuss.elastic.co/t/bulk-index-error-during-ingestion-challenge/131933 "2018-05-15T12:32:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![uderline](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/uderline/32/26245_2.png) [@uderline](https://discuss.elastic.co/u/uderline)\
**Post date:** [May 15, 2018, 12:32pm UTC](https://discuss.elastic.co/t/bulk-index-error-during-ingestion-challenge/131933/1 "2018-05-15T12:32:53Z")

</div>

Hello,

My team and I are running a custom plugin that we made this year. This elasticsearch instance is running over two nodes. Our big problem is that the machine that we are using is slow (2 \* Intel core i3 - 1.3GHz) - it is a challenge to optimize our solution.

During the ingestion, we some times get this message in the logs:

> [2018-05-15T14:25:29,342][ERROR][o.e.a.b.TransportBulkAction] [grlaaa01] failed to execute pipeline for a bulk request  
> org.elasticsearch.common.util.concurrent.EsRejectedExecutionException: rejected execution of org.elasticsearch.ingest.PipelineExecutionService$2@3ea8b251 on EsThreadPoolExecutor[bulk, queue capacity = 200, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@a7ebdbd[Running, pool size = 4, active threads = 4, queued tasks = 200, completed tasks = 92298]]  
> at org.elasticsearch.common.util.concurrent.EsAbortPolicy.rejectedExecution(EsAbortPolicy.java:50) ~[elasticsearch-5.6.7.jar:5.6.7]  
> at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823) ~[?:1.8.0\_131]  
> at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1369) ~[?:1.8.0\_131]  
> at org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor.doExecute(EsThreadPoolExecutor.java:94) ~[elasticsearch-5.6.7.jar:5.6.7]  
> at org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor.execute(EsThreadPoolExecutor.java:89) ~[elasticsearch-5.6.7.jar:5.6.7]  
> at org.elasticsearch.ingest.PipelineExecutionService.executeBulkRequest(PipelineExecutionService.java:74) ~[elasticsearch-5.6.7.jar:5.6.7]  
> at org.elasticsearch.action.bulk.TransportBulkAction.processBulkIndexIngestRequest(TransportBulkAction.java:508) ~[elasticsearch-5.6.7.jar:5.6.7]  
> at org.elasticsearch.action.bulk.TransportBulkAction.doExecute(TransportBulkAction.java:136) ~[elasticsearch-5.6.7.jar:5.6.7]  
> at org.elasticsearch.action.bulk.TransportBulkAction.doExecute(TransportBulkAction.java:85) ~[elasticsearch-5.6.7.jar:5.6.7]  
> at  
> ...

This message appears after quite a lot of entries (I believe 200 according to the error message). But does it mean that the last 200 entries are lost ? Partly ?  
According to [Why am I seeing bulk rejections in my Elasticsearch cluster? | Elastic Blog](https://www.elastic.co/blog/why-am-i-seeing-bulk-rejections-in-my-elasticsearch-cluster), no but can we be completely sure that some data aren't lost ?

By the way, the ingestion is done on one and only node, is that normal ?

Do you have any ideas of how optimizing the ingestion without touching the plugin ?

Best regards,

---

<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:** [May 15, 2018, 1:43pm UTC](https://discuss.elastic.co/t/bulk-index-error-during-ingestion-challenge/131933/2 "2018-05-15T13:43:29Z")

</div>

How many shards are you actively indexing into?

---

<div class="post-metadata">

**Author:** ![uderline](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/uderline/32/26245_2.png) [@uderline](https://discuss.elastic.co/u/uderline)\
**Post date:** [May 15, 2018, 1:54pm UTC](https://discuss.elastic.co/t/bulk-index-error-during-ingestion-challenge/131933/3 "2018-05-15T13:54:17Z")

</div>

We are using 2 shards and 0 replicas.

```
PUT mdm
{
  "settings" : {
    "index" : {
      "number_of_shards" : 2, 
      "number_of_replicas" : 0 
    }
  }
}
```

---

<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:** [June 12, 2018, 1:54pm UTC](https://discuss.elastic.co/t/bulk-index-error-during-ingestion-challenge/131933/4 "2018-06-12T13:54:21Z")

</div>

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