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

pools: add timeouts for all conn pools #6063

Merged
merged 3 commits into from
Apr 15, 2020

Conversation

sougou
Copy link
Contributor

@sougou sougou commented Apr 14, 2020

This is required to make all pools uniform. Currently, there are two different variables, one for conn pool and one for tx pool. But other pools don't have a timeout.

Additional cleanup:

  • Plumb context through calls to open connections through resource pool.
  • Push down the connection timeout in the mysql params into mysql.Connect.

sougou added 3 commits April 13, 2020 16:48
Since the parameter is in mysql's conn params, that's the right
place to handle this.

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
This is required to make all pools uniform. Currently, there are
two different variables, one for conn pool and one for tx pool.
But other pools don't have a timeout.

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
@sougou sougou requested a review from morgo as a code owner April 14, 2020 00:48
@sougou sougou merged commit 90de2db into vitessio:master Apr 15, 2020
@sougou sougou deleted the ss-pool-timeout branch April 15, 2020 20:38
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