-
Notifications
You must be signed in to change notification settings - Fork 126
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
Skipping new nodes which do not have the http property present yet. #985
Conversation
Signed-off-by: Jaco Smit <jacobuss@amazon.com>
t.equal(pool.nodesToHost(nodes, 'http:').length, 1); | ||
t.equal(pool.nodesToHost(nodes, 'http:')[0].url.host, '127.0.0.1:9200'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't the test on line 645 already encapsulate these 2 tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it does technically. Will remove these. Thanks!
CHANGELOG.md
Outdated
@@ -14,6 +14,8 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) | |||
## [3.3.0] | |||
### Changed | |||
- Updated API to match the OpenSearch spec from Feb 11, 2025 | |||
### Fixed | |||
- Skip nodes that are not ready ready yet ([#984](https://github.com/opensearch-project/opensearch-js/issues/984)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: ready ready :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks will fix this :D
Signed-off-by: Jaco Smit <jacobuss@amazon.com>
Description
New nodes do not necessarily have the
http
property present. Skipping these nodes to avoid issues where the property is accessed.Issues Resolved
#984
Check List
yarn run lint
doesn't show any errorsBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.