TransportClient#addTransportAddress hangs when cluster node is down or cluster is rebalancing.

Hello,

We have occasional but severe issues with
TransportClient#addTransportAddress hanging while one or several nodes are
down and/or the cluster is re-balancing. The application as a whole times
out after 30 minutes with a stack trace you'll find in this linkhttp://pastebin.com/96ub869V
.

We instantiate the client like this:

Settings settings = ImmutableSettings.settingsBuilder().put("cluster.name",
esClustername).put("client.transport.sniff", true).put(
"client.transport.ping_timeout", "10s").build();
esClient = new TransportClient(settings);
for (int i = 0; i < hostnames.length; i++) {
esClient = esClient.addTransportAddress(new
InetSocketTransportAddress(hostnames[i], 9300));
}

We found there there used to be an issue with using
"client.transport.sniff" but it seems that this was fixed long before ES
version 1.0.1 which is the one we are using.

What could explain this behavior and what can I do to add least cause a
fast fail in this case?

Thank you,

/David

--
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/0d9c9f14-044d-4acb-a9e7-d2848e1e63c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.