# Error : java.lang.IllegalStateException: Request cannot be executed; I/O reactor status: STOPPED

**URL:** <https://discuss.elastic.co/t/error-java-lang-illegalstateexception-request-cannot-be-executed-i-o-reactor-status-stopped/133070>\
**Category:** Elasticsearch\
**Created:** [May 24, 2018, 3:35am UTC](https://discuss.elastic.co/t/error-java-lang-illegalstateexception-request-cannot-be-executed-i-o-reactor-status-stopped/133070 "2018-05-24T03:35:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishan](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@krishan](https://discuss.elastic.co/u/krishan)\
**Post date:** [May 24, 2018, 3:35am UTC](https://discuss.elastic.co/t/error-java-lang-illegalstateexception-request-cannot-be-executed-i-o-reactor-status-stopped/133070/1 "2018-05-24T03:35:55Z")

</div>

I am currently using 3 data nodes nodes ES 6.1 cluster on PROD env.For the past week we have start getting below error  
"java.lang.IllegalStateException: Request cannot be executed; I/O reactor status: STOPPED".  
without anything going wrong in the cluster or in the nodes(as seen from the logs).Some other people have also posted same issue with a different resolution for all of them.So I want to know the concrete root cause why this is happening.As per my understanding the client gets into "CLOSED" status and any request after that starts failing.Also this is not happening for all the requests.So that suggests that its a node level issue.My code for connecting to ES:

for (String elasticHost : elasticSearchHosts){  
httpHosts.add(new HttpHost(elasticHost, Integer.parseInt(elasticsearchPort)));  
}  
final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();  
credentialsProvider.setCredentials(AuthScope.ANY,  
new UsernamePasswordCredentials(elasticUser, elasticPassword));

```
    restHighLevelClient= new RestHighLevelClient(RestClient.builder(httpHosts.toArray(new HttpHost[httpHosts.size()])).setHttpClientConfigCallback(new HttpClientConfigCallback() {				

```

@Override  
public HttpAsyncClientBuilder customizeHttpClient(HttpAsyncClientBuilder httpClientBuilder)  
{ return httpClientBuilder.setDefaultCredentialsProvider(credentialsProvider);  
}}));  
return restHighLevelClient;

Any update would be helpful.

---

<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 21, 2018, 3:36am UTC](https://discuss.elastic.co/t/error-java-lang-illegalstateexception-request-cannot-be-executed-i-o-reactor-status-stopped/133070/2 "2018-06-21T03:36:10Z")

</div>

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