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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/cac8db95-e4d4-474a-91a6-7426a661ff1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.