Skip to content
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

Merged
merged 2 commits into from
Feb 26, 2025

Conversation

jaco-smit
Copy link
Contributor

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

  • New functionality includes testing.
    • All tests pass
  • Linter check was successfull - yarn run lint doesn't show any errors
  • Commits are signed per the DCO using --signoff
  • Changelog was updated.

By 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.

Comment on lines 657 to 658
t.equal(pool.nodesToHost(nodes, 'http:').length, 1);
t.equal(pool.nodesToHost(nodes, 'http:')[0].url.host, '127.0.0.1:9200');
Copy link
Collaborator

@nhtruong nhtruong Feb 26, 2025

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?

Copy link
Contributor Author

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))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: ready ready :D

Copy link
Contributor Author

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

@jaco-smit jaco-smit requested review from nhtruong and ananzh February 26, 2025 19:25
@ananzh ananzh merged commit f76a349 into opensearch-project:main Feb 26, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants