Continuing the discussion from [v6.2.2]ES often happen Frequently error of timeout question now and then:
i am also getting same error. Let me know if any solution for this?
java.lang.IllegalStateException: Request cannot be executed; I/O reactor status: STOPPED
java.lang.IllegalStateException: Request cannot be executed; I/O reactor status: STOPPED
i am running 2 shades on 3 zones with Indices-9. I am using 6.4
final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();
credentialsProvider.setCredentials(AuthScope.ANY,
new UsernamePasswordCredentials(esuser, espassword));
RestHighLevelClient client = new RestHighLevelClient(RestClient.builder(new HttpHost(eshost, esport, "https"))
.setHttpClientConfigCallback(new RestClientBuilder.HttpClientConfigCallback() {
@Override
public HttpAsyncClientBuilder customizeHttpClient(HttpAsyncClientBuilder httpClientBuilder) {
httpClientBuilder.setDefaultCredentialsProvider(credentialsProvider);
return httpClientBuilder;
}
}));
restHighLevelClient = client;