Listener timeout after waiting for [30000] ms in RestHightLevel Client

Hi I am facing error on Elasticsearch rest hight level client. I checked with elasticsearch host, but it is working correctly. I can able to fetch the data by doing GET request. Even , when I start my java application , it fetches data from elastic gracefully. But after some time (1or 2 day later) , the application starts throwing
listener timeout after waiting for [30000] ms on any search query. Manually(using curl) I am able get the data from same elasticseach host. I dint find any way , so reach out here only.

my piece of code

private RestHighLevelClient createElasticClient() {
RestHighLevelClient client = null;
try {
String elasticUrl = elDashboardConfService.getElasticSearchUrl();
log.info("Building RestHighLevelClient for: {}", elasticUrl);
client = new RestHighLevelClient(
RestClient.builder(HttpHost.create(elasticUrl)));
} catch (Exception e) {
log.error(e.getMessage());
}
return client;
}

If I restart my application , again it starts working correctly.
I went through this discussion Rest Client listener timeout after waiting for [30000] ms - #5 by ajit. I dint find my solution there.

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