elastic / elastic-transport-js

Transport classes and utilities shared among Node.js Elastic client libraries
Apache License 2.0
5 stars 25 forks source link

Skip adding new nodes that aren't ready yet #72

Closed JoshMock closed 1 year ago

JoshMock commented 1 year ago

When nodes are just added to a cluster, they may not have an http object yet. Skipping over those ensures the hosts list only contains nodes that can actually take a connection.

Should help resolve https://github.com/elastic/elasticsearch-js/issues/1230.