3

I am getting this error while implementing Elastic API in my project. No nodes were attempted, this can happen when a node predicate does not match any nodes. Has Anyone had any knowledge regarding this error?

2
  • 2
    This can happen if you define a predicate that will not match any nodes that the client knows about, when determining a node to run a request against. Take a look at the documentation at: elastic.co/guide/en/elasticsearch/client/net-api/current/… Commented Jul 20, 2017 at 22:52
  • 1
    @RussCam I provided my answer below w/ the caveat that I cannot explain why I would see that condition sporadically in a single node or single load balancer scenario. Any thoughts why this exception would occur sporadically in that scenario? Commented Dec 1, 2017 at 5:30

1 Answer 1

2

One scenario I can add here is where your cluster contains only a single node or you are interacting with your cluster through a single load balancer instance. I discovered that a SniffingConnectionPool may sporadically throw this exception (ie. No nodes were attempted). I cannot explain why this only happens sporadically but I solved it by using a SingleNodeConnectionPool as Martijn Laarman explains here. The scenario in that link is another similar case to mine (ie. Elastic Cloud).

Sign up to request clarification or add additional context in comments.

1 Comment

This is still true in 2021. Switching to SingleNodeConnectionPool for single cloud installations fixed the issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.