Java client, gets disconected after a while


(jcodina) #1

I have a java client that opperates with a remote ES database. The same
client works without any problem in different computers, but It fails in a
computer that is behind a proxy.
In that comptuer all the connections to external computers must go through
that proxy, I just connect to proxy:9300 and it will redirect the
conneciton to EsServer:9300 (having the real DNS of the EsServer..)
In this computer the client program connects, and I can retrieve and write
some data to ES, but after a while, with what it seems to me a random
pattern, the connection drops. So, my questions are two:
a: There is a way to restart the connection when in breaks (i thought the
client was doing it)
b: there is any parameter I should as to set up in the proxy (i don't
manage the computer nor the proxy :frowning: so ... I can't give you more
information about it, for the moment.
The error stack trace says:

reading register 1055603 5074
DEBUG [elasticsearch[Kkallakku][transport_client_worker][T#2]{New I/O
worker #2}] (Log4jESLogger.java:104) - [Kkallakku] disconnected from
[[Mikula
Golubev][O_7-yu0fT9mI5NE6s_1cSA][lmy.esServer.com][inet[proxy/---.---.---.---:9300]]],
channel closed event
DEBUG [elasticsearch[Kkallakku][transport_client_worker][T#3]{New I/O
worker #3}] (Log4jESLogger.java:104) - [Kkallakku] disconnected from
[[Mikula
Golubev][O_7-yu0fT9mI5NE6s_1cSA][lmy.esServer.com][inet[proxy/1---.---.---.---:9300]]],
channel closed event
org.elasticsearch.client.transport.NoNodeAvailableException: No node
available
at
org.elasticsearch.client.transport.TransportClientNodesService$RetryListener.onFailure(TransportClientNodesService.java:263)
at
org.elasticsearch.action.TransportActionNodeProxy$1.handleException(TransportActionNodeProxy.java:89)
at
org.elasticsearch.transport.TransportService$Adapter$2$1.run(TransportService.java:316)
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:724)

--
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/b33341a0-5c07-4b09-844a-ae3138142aea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2