Option "client.transport.sniff" not working with v5.4.0 Transport Client

Hi @munk77,

I have exactly the same problem.
My unit tests are failing because they can't connect to my local cluster (127.0.0.1:9300).
It started to happen after I upgraded my ES and transport library to 5.4.0.
As you said, when I change the sniff to false it works. :frowning:

I have received the same exception that you said, but there is another in the beginning:

org.elasticsearch.transport.ReceiveTimeoutTransportException: [][127.0.0.1:9300][cluster:monitor/state] request_id [2] timed out after [5006ms]
	at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:925) [elasticsearch-5.4.0.jar:5.4.0]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:569) [elasticsearch-5.4.0.jar:5.4.0]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
  • I don't know why, but when I'm in debug mode and I delay the breakpoint for a little time the sniff=true works :open_mouth: