# NodeDisconnectedException - help!

**URL:** https://discuss.elastic.co/t/nodedisconnectedexception-help/21090
**Category:** Elasticsearch
**Created:** [December 4, 2014, 7:08pm UTC](https://discuss.elastic.co/t/nodedisconnectedexception-help/21090 "2014-12-04T19:08:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Zed](https://avatars.discourse-cdn.com/v4/letter/z/d78d45/32.png) [@Zed](https://discuss.elastic.co/u/Zed)
#### Post date: [December 4, 2014, 7:08pm UTC](https://discuss.elastic.co/t/nodedisconnectedexception-help/21090/1 "2014-12-04T19:08:42Z")

</div>

We're in the middle of testing a new ES implementation in our QA  
environment. We have set up a service which has a singleton  
TrasportClient instance. After times of inactivity, when invoking a  
search via the client we receive NodeDisconnectedExceptions.

We normally can connect and run queries, however this appears to happen  
after queries have not run for some time (unsure of how long -- possibly an  
hour or more). Doesn't the client by-default use a keepalive so that the  
firewall does not close any open communications with the server? Besides  
defining the cluster.name and specifying the transport hosts, we have no  
other client settings.

Environment: ES 1.4.1

Client: TransportClient (singleton used inside a Spring container)

We see errors like below:

org.elasticsearch.client.transport.NoNodeAvailableException: None of the  
configured nodes were available: [[Elektra  
Natchios][I-9Rp2hITi6MLTYfgTQm4w][blablahhost][inet[/10.230.2.159:9300]],  
[Toro][CeyRN2idRzGgJC3gwmsxdw][bwzldelas1][inet[/10.230.2.158:9300]]]

```
    at 

```

org.elasticsearch.client.transport.TransportClientNodesService$RetryListener.onFailure(TransportClientNodesService.java:234)

```
    at 

```

org.elasticsearch.action.TransportActionNodeProxy$1.handleException(TransportActionNodeProxy.java:78)

```
    at 

```

org.elasticsearch.transport.TransportService$Adapter$3.run(TransportService.java:323)

```
    at 

```

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

```
    at 

```

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

```
    at java.lang.Thread.run(Thread.java:744)

```

Caused by: org.elasticsearch.transport.NodeDisconnectedException: [Elektra  
Natchios][inet[/10.230.2.159:9300]][indices:data/read/search] disconnected

Can one of you ES gurus please point me in the right direction. Thanks!

Zed

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/cac8db95-e4d4-474a-91a6-7426a661ff1d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/cac8db95-e4d4-474a-91a6-7426a661ff1d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [July 6, 2017, 12:45am UTC](https://discuss.elastic.co/t/nodedisconnectedexception-help/21090/2 "2017-07-06T00:45:50Z")

</div>


