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

Update client pool logic #846

Merged
merged 5 commits into from
Jan 25, 2024
Merged

Update client pool logic #846

merged 5 commits into from
Jan 25, 2024

Conversation

atercattus
Copy link
Member

@atercattus atercattus commented Jan 22, 2024

client/pool does not report connection problems properly: in cases of authorization errors, version incompatibility, incorrect database address, network problems, etc.
Also, we have #701 with a request for new functionality in the same case.

This PR updates the pool logic a bit: more user-friendly function NewPoolWithOptions, and option WithNewPoolPingTimeout for doing connect&ping during pool initialization.

Also, this fixes make test-local after #803.

@atercattus atercattus changed the title WiP - Update client pool logic Update client pool logic Jan 23, 2024
@atercattus atercattus requested a review from lance6716 January 23, 2024 07:19
Copy link
Collaborator

@lance6716 lance6716 left a comment

Choose a reason for hiding this comment

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

rest lgtm

client/pool.go Show resolved Hide resolved
client/pool_test.go Outdated Show resolved Hide resolved
@atercattus atercattus requested a review from lance6716 January 25, 2024 07:58
@atercattus
Copy link
Member Author

@lance6716 sorry, one more time :)

Together we didn't notice that I accidentally committed the wrong thing to the Makefile:
image

Copy link
Collaborator

@lance6716 lance6716 left a comment

Choose a reason for hiding this comment

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

I also double checked that make test-local can run

@atercattus atercattus merged commit a057d23 into master Jan 25, 2024
26 checks passed
@atercattus atercattus deleted the update-client-pool-logic branch January 25, 2024 08:34
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.

2 participants