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

[CCI] BaseConnectionPool missing implementation of markAlive and markDead methods #430

Closed
wants to merge 0 commits into from

Conversation

timursaurus
Copy link
Collaborator

@timursaurus timursaurus commented Mar 12, 2023

Description

Implement BaseConnectionPool markDead and markAlive methods
Fix unit test

Issues Resolved

Closes #429

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.

@timursaurus timursaurus changed the title BaseConnectionPool missing implementation of markAlive and markDead methods [CCI] BaseConnectionPool missing implementation of markAlive and markDead methods Mar 12, 2023
Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

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

Thanks!

Add tests for markAlive? What happens if I call markAlive/Dead twice? How is this used (check whether there's documentation in USERS_GUIDE pls, if not add something).

CHANGELOG.md Outdated
@@ -45,6 +45,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Added required `array` argument when invoking `SerializationError` ([#419](https://github.com/opensearch-project/opensearch-js/pull/419))
- Removed unnecessary `data` argument when invoking `OpenSearchClientError` ([#421](https://github.com/opensearch-project/opensearch-js/pull/421))
- Fixed typos in `ConnectionPool` ([#427](https://github.com/opensearch-project/opensearch-js/pull/427))
- Added `BaseConnectionPool` `markDead` and `markAlive` methods implementation ([#430](https://github.com/opensearch-project/opensearch-js/pull/430))
Copy link
Member

Choose a reason for hiding this comment

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

Try to write this from the user's perspective, before they tried to call markDead and it didn't work. You're fixing it, so let's say "Fixed BaseConnectionPool#markDead and #markAlive"

@timursaurus
Copy link
Collaborator Author

Thanks!

Add tests for markAlive? What happens if I call markAlive/Dead twice? How is this used (check whether there's documentation in USERS_GUIDE pls, if not add something).

Will do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCI College Contributor Initiative
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] [CCI] BaseConnectionPool empty methods
3 participants