# Request cannot be executed i/o reactor status stopped

**URL:** <https://discuss.elastic.co/t/request-cannot-be-executed-i-o-reactor-status-stopped/195438>\
**Category:** Elasticsearch\
**Created:** [August 16, 2019, 6:34am UTC](https://discuss.elastic.co/t/request-cannot-be-executed-i-o-reactor-status-stopped/195438 "2019-08-16T06:34:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajashekarchelpuri](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@Rajashekarchelpuri](https://discuss.elastic.co/u/Rajashekarchelpuri)\
**Post date:** [August 16, 2019, 6:34am UTC](https://discuss.elastic.co/t/request-cannot-be-executed-i-o-reactor-status-stopped/195438/1 "2019-08-16T06:34:06Z")

</div>

request cannot be executed i/o reactor status stopped.

Please help me how to solve this issue

---

<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:** [August 16, 2019, 8:30am UTC](https://discuss.elastic.co/t/request-cannot-be-executed-i-o-reactor-status-stopped/195438/2 "2019-08-16T08:30:25Z")

</div>

Can you give more context? Hard to answer without knowing anything.

---

<div class="post-metadata">

**Author:** ![Rajashekarchelpuri](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@Rajashekarchelpuri](https://discuss.elastic.co/u/Rajashekarchelpuri)\
**Post date:** [August 16, 2019, 8:59am UTC](https://discuss.elastic.co/t/request-cannot-be-executed-i-o-reactor-status-stopped/195438/3 "2019-08-16T08:59:41Z")

</div>

Index : requirement  
Type : requirement  
java.lang.IllegalStateException: Request cannot be executed; I/O reactor status: STOPPED  
at org.apache.http.util.Asserts.check(Asserts.java:46)  
at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase.ensureRunning(CloseableHttpAsyncClientBase.java:90)  
at org.apache.http.impl.nio.client.InternalHttpAsyncClient.execute(InternalHttpAsyncClient.java:123)  
at org.elasticsearch.client.RestClient.performRequestAsync(RestClient.java:529)  
at org.elasticsearch.client.RestClient.performRequestAsyncNoCatch(RestClient.java:514)  
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:226)  
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1256)  
at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1231)  
at org.elasticsearch.client.RestHighLevelClient.search(RestHighLevelClient.java:730)  
at com.bis.sourcelead.elk.setup.SourceleadELKBaseIndexer.searchDocumentWithMaxResults(SourceleadELKBaseInd

---

<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:** [August 16, 2019, 9:22am UTC](https://discuss.elastic.co/t/request-cannot-be-executed-i-o-reactor-status-stopped/195438/4 "2019-08-16T09:22:19Z")

</div>

Please format your code, logs or configuration files using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

This is the icon to use if you are not using markdown format:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e6e239431ec2d71cbf1beef741f2e93e7cc762c.jpg)

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.  
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.  
Please update your post.

How can we reproduce?

---

<div class="post-metadata">

**Author:** ![HenningAndersen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henningandersen/32/48188_2.png) [@HenningAndersen](https://discuss.elastic.co/u/HenningAndersen)\
**Post date:** [August 16, 2019, 11:01am UTC](https://discuss.elastic.co/t/request-cannot-be-executed-i-o-reactor-status-stopped/195438/6 "2019-08-16T11:01:47Z")

</div>

This sounds similar to [https://github.com/elastic/elasticsearch/issues/45115](https://github.com/elastic/elasticsearch/issues/45115). The problem in that issue is caused by throwing an exception in an onFailure method in the client application code. This causes the connection to be closed and subsequent requests will fail with the error reported here.

I believe this also affects the high level client if using any of the methods reporting response/failure back through an ActionListener (I think all of them have suffix Async in their method names).

The workaround is to ensure that no exceptions are thrown out of your `onFailure` methods.

---

<div class="post-metadata">

**Author:** ![Rajashekarchelpuri](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@Rajashekarchelpuri](https://discuss.elastic.co/u/Rajashekarchelpuri)\
**Post date:** [August 16, 2019, 11:30am UTC](https://discuss.elastic.co/t/request-cannot-be-executed-i-o-reactor-status-stopped/195438/7 "2019-08-16T11:30:59Z")

</div>

Thanks.

---

<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 13, 2019, 11:31am UTC](https://discuss.elastic.co/t/request-cannot-be-executed-i-o-reactor-status-stopped/195438/8 "2019-09-13T11:31:05Z")

</div>

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