-
Notifications
You must be signed in to change notification settings - Fork 27
Default node filter does not seem filter for master only nodes #231
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
Comments
Looks like that was an oversight during a large rewrite a couple years back. I'll put the old implementation back in soon and let you know here when it's shipped. |
Copying over from the discuss forum post: On closer investigation, it seems So, it appears that the better choice would actually be to drop Given that, it's not obvious what If you have a particular use case in mind for how to use Let me know if you have more questions! For now I'm going to update the docs to reflect the way the code currently works. |
We discussed further and decided to reintroduce the functionality rather than stripping out the broken feature. Will handle that in the next few days. |
This is fixed in The fix to reinstate it into |
Fix is now available in 8.18.1. |
Uh oh!
There was an error while loading. Please reload this page.
🐛 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-L772The 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.
The text was updated successfully, but these errors were encountered: