Java RestClient: Connection closed

Hi There,

I have a business logic that visits elasticsearch in every minute to query some data.
After a while the client has connection issues, while the Elasticsearch v6.4 in AWS with 2 nodes are up and running without any issues.
I'm using the 6.4.3 java client version.

org.apache.http.ConnectionClosedException: Connection closed at org.elasticsearch.client.RestClient$SyncResponseListener.get( at org.elasticsearch.client.RestClient.performRequest( at org.elasticsearch.client.RestHighLevelClient.performRequest( at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity( at org.elasticsearch.client.RestHighLevelClient.get(

I also configured a failure listener but the node info doesn't tell me much:

Elasticsearch node failure. Node[host=,boundHosts=<null>,name=<null>,version=<null>,roles=<null>,attributes=<null>]

Any suggestions how to fix this problem?

1 Like

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