# Rejected execution of primary operation

**URL:** <https://discuss.elastic.co/t/rejected-execution-of-primary-operation/340391>\
**Category:** Logstash\
**Created:** [August 8, 2023, 5:29pm UTC](https://discuss.elastic.co/t/rejected-execution-of-primary-operation/340391 "2023-08-08T17:29:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuswanul](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuswanul/32/101662_2.png) [@yuswanul](https://discuss.elastic.co/u/yuswanul)\
**Post date:** [August 8, 2023, 5:29pm UTC](https://discuss.elastic.co/t/rejected-execution-of-primary-operation/340391/1 "2023-08-08T17:29:31Z")

</div>

Hi there,

sometimes my logstash had printed the log that said _"rejected execution of primary operation"_ with the error type "es\_rejected\_execution\_exception"

can anyone explain to me what's going on actually?

Thanks

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [August 8, 2023, 5:31pm UTC](https://discuss.elastic.co/t/rejected-execution-of-primary-operation/340391/2 "2023-08-08T17:31:20Z")

</div>

Hello,

Can you share the entire log that logstash is giving you? It is pretty hard to troubleshoot it with just a part of the log.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [August 8, 2023, 7:55pm UTC](https://discuss.elastic.co/t/rejected-execution-of-primary-operation/340391/3 "2023-08-08T19:55:37Z")

</div>

> [@yuswanul](#):
>
> es\_rejected\_execution\_exception

That's an error that elasticsearch produces when it cannot keep up with the rate data is being sent to it. See [this](https://discuss.elastic.co/t/regarding-ingestion-exception/252230/3) thread.

---

<div class="post-metadata">

**Author:** ![yuswanul](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuswanul/32/101662_2.png) [@yuswanul](https://discuss.elastic.co/u/yuswanul)\
**Post date:** [August 9, 2023, 12:26am UTC](https://discuss.elastic.co/t/rejected-execution-of-primary-operation/340391/4 "2023-08-09T00:26:07Z")

</div>

Here is the full error

```auto
:error⇒{"type"=>"es_rejected_execution_exception", "reason""rejected execution of primary operation [coordinating_and_primary_bytes=3208486016, replica_bytes=621357, all_bytes=3209107373, primary_operation_bytes=13428432, max_coordinating_and_prima ry_bytes=3221225472]"}}

```

How do you think?

---

<div class="post-metadata">

**Author:** ![yuswanul](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuswanul/32/101662_2.png) [@yuswanul](https://discuss.elastic.co/u/yuswanul)\
**Post date:** [August 9, 2023, 2:27am UTC](https://discuss.elastic.co/t/rejected-execution-of-primary-operation/340391/5 "2023-08-09T02:27:23Z")

</div>

the rest of it just contains log data and the log began with _"Retrying failed action"_

---

<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:** [September 6, 2023, 2:27am UTC](https://discuss.elastic.co/t/rejected-execution-of-primary-operation/340391/6 "2023-09-06T02:27:44Z")

</div>

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