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

logictest: refactor client connection creation logic #96469

Merged
merged 1 commit into from
Feb 3, 2023

Conversation

andyyang890
Copy link
Collaborator

@andyyang890 andyyang890 commented Feb 2, 2023

This patch abstracts the logic for creating client connections and
persisting them into a separate function. As a side benefit, it also
fixes the problem of clients created in execQuery not being properly
tracked in the clients field of logicTest.

Informs #92342

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@andyyang890
Copy link
Collaborator Author

Depends on #96282

This patch abstracts the logic for creating client connections and
persisting them into a separate function. As a side benefit, it also
fixes the problem of clients created in `execQuery` not being properly
tracked in the `clients` field of `logicTest`.

Release note: None
@andyyang890 andyyang890 marked this pull request as ready for review February 3, 2023 15:41
@andyyang890 andyyang890 requested review from rafiss and a team February 3, 2023 15:41
Copy link
Collaborator

@rafiss rafiss left a comment

Choose a reason for hiding this comment

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

nice! i just had one question

pkg/sql/logictest/logic.go Show resolved Hide resolved
@andyyang890
Copy link
Collaborator Author

bors r=rafiss

@craig
Copy link
Contributor

craig bot commented Feb 3, 2023

Build succeeded:

@craig craig bot merged commit 899c911 into cockroachdb:master Feb 3, 2023
@andyyang890 andyyang890 deleted the logictest_user_refactor_2 branch February 3, 2023 19:43
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.

3 participants