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

[vtadmin] threadsafe vtsql #10000

Merged
merged 2 commits into from
Mar 29, 2022
Merged

Conversation

ajm188
Copy link
Contributor

@ajm188 ajm188 commented Mar 29, 2022

Description

I noticed when working on #9977 that vtsql's Dial is not thread safe, which could cause multiple conns to get opened to the same vtgate rather than multiplexing via SubConns the way grpc is meant to be used. I also then extended the mutex to vtsql's Debug and both vtsql's and vtctldclientproxy's Close

Related Issue(s)

Checklist

  • Should this PR be backported? no
  • Tests were added or are not required n/a
  • Documentation was added or is not required n/a

Deployment Notes

Andrew Mason added 2 commits March 29, 2022 06:45
Signed-off-by: Andrew Mason <andrew@planetscale.com>
Signed-off-by: Andrew Mason <andrew@planetscale.com>
@ajm188 ajm188 merged commit 8c19b99 into vitessio:main Mar 29, 2022
@ajm188 ajm188 deleted the andrew/threadsafe-vtsql branch March 29, 2022 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants