ElasticSearch Java API re-connect

(Gubendran Lakshmanan) #1

We are having springboot application with yaml configuration configured with ElasticSEarch URL. In our application we started getting error "Caused by: org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: " when elasticsearch went to 'Red' or not available in the springboot code.

Once elasticSearch is back normal upon reboot still our application throws error "Caused by: org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: ". After restart web application error goes away. Is there a way we can force java to reconnect without restarting our web application ?

(system) closed #2

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