Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TransportClient (sniff) fails to reconnect to nodes once removed if all nodes are removed #1819

Closed
holdenk opened this issue Mar 29, 2012 · 1 comment

Comments

@holdenk
Copy link

holdenk commented Mar 29, 2012

Reproduction steps:

Create transportclient pointed at a single node cluster. Query cluster. Shutdown cluster. Query. Bring back up node. Query.

The exception is:

org.elasticsearch.client.transport.NoNodeAvailableException: No node available
at org.elasticsearch.client.transport.TransportClientNodesService$RetryListener.onFailure(TransportClientNodesService.java:214)
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:182)
at org.elasticsearch.client.transport.support.InternalTransportClient.execute(InternalTransportClient.java:97)
at org.elasticsearch.client.support.AbstractClient.search(AbstractClient.java:206)
at org.elasticsearch.client.transport.TransportClient.search(TransportClient.java:345)
at org.elasticsearch.action.search.SearchRequestBuilder.doExecute(SearchRequestBuilder.java:743)
at org.elasticsearch.action.support.BaseRequestBuilder.execute(BaseRequestBuilder.java:53)
at org.elasticsearch.action.support.BaseRequestBuilder.execute(BaseRequestBuilder.java:47)
at com.foursquare.slashem.ElasticSchema$$anonfun$18.apply(Schema.scala:506)
at com.foursquare.slashem.ElasticSchema$$anonfun$18.apply(Schema.scala:470)
at com.twitter.util.Try$.apply(Try.scala:13)
at com.twitter.util.ExecutorServiceFuturePool$$anon$2.run(FuturePool.scala:65)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)

holdenk pushed a commit to holdenk/elasticsearch that referenced this issue Mar 29, 2012
…onnect to nodes once removed if all nodes are removed
kimchy pushed a commit that referenced this issue Mar 29, 2012
…to nodes once removed if all nodes are removed
kimchy pushed a commit that referenced this issue Mar 29, 2012
…to nodes once removed if all nodes are removed
@kimchy
Copy link
Member

kimchy commented Mar 29, 2012

Fixed in #1818.

@kimchy kimchy closed this as completed Mar 29, 2012
mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
…onnect to nodes once removed if all nodes are removed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants