-
Notifications
You must be signed in to change notification settings - Fork 995
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
Conversation
…ation - add getDefaultPoolOptions
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.
rest lgtm
…ation - tests refactoring
@lance6716 sorry, one more time :) Together we didn't notice that I accidentally committed the wrong thing to the Makefile: |
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 also double checked that make test-local
can run
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 optionWithNewPoolPingTimeout
for doing connect&ping during pool initialization.Also, this fixes
make test-local
after #803.