Skip to content

Default node filter does not seem filter for master only nodes #231

Closed
@spinscale

Description

@spinscale

🐛 Bug Report

The implementation has a default node filter of return true, as seen here https://github.com/elastic/elastic-transport-js/blob/main/src/Transport.ts#L770-L772

The docs state that the default filter however exclude master-only nodes, see https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/basic-config.html

I think the documentation states the correct behaviour and the actual implementation needs to be adapted - unless I am looking at the wrong part of the code.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions