Skip to content

[vtadmin] threadsafe vtsql#10000

Merged
ajm188 merged 2 commits intovitessio:mainfrom
planetscale:andrew/threadsafe-vtsql
Mar 29, 2022
Merged

[vtadmin] threadsafe vtsql#10000
ajm188 merged 2 commits intovitessio:mainfrom
planetscale:andrew/threadsafe-vtsql

Conversation

@ajm188
Copy link
Copy Markdown
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