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

sql: fix TestRandomSyntaxSchemaChangeDatabase flake #128939

Merged

Conversation

fqazi
Copy link
Collaborator

@fqazi fqazi commented Aug 14, 2024

Previously, TestRandomSyntaxSchemaChangeDatabase could flake because of contention from multiple Go routines executing SQL against the same database. Some of these schema changes were long-running, making this test unreliable. To address this, this patch creates multiple databases, so that every two connections will share the same database.

Fixes: #128287

Release note: None

Previously, TestRandomSyntaxSchemaChangeDatabase could flake because of
contention from multiple Go routines executing SQL against the same
database. Some of these schema changes were long-running, making this
test unreliable. To address this, this patch creates multiple databases,
so that every two connections will share the same database.

Fixes: cockroachdb#128287

Release note: None
@fqazi fqazi requested a review from a team as a code owner August 14, 2024 01:44
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@fqazi fqazi added backport-23.2.x Flags PRs that need to be backported to 23.2. backport-24.1.x Flags PRs that need to be backported to 24.1. backport-24.2.x Flags PRs that need to be backported to 24.2 labels Aug 14, 2024
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.

lgtm!

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

@fqazi
Copy link
Collaborator Author

fqazi commented Aug 14, 2024

@rafiss TFTR!

bors r+

@craig craig bot merged commit b4a9870 into cockroachdb:master Aug 14, 2024
22 of 23 checks passed
Copy link

blathers-crl bot commented Aug 14, 2024

Based on the specified backports for this PR, I applied new labels to the following linked issue(s). Please adjust the labels as needed to match the branches actually affected by the issue(s), including adding any known older branches.


Issue #128287: branch-release-23.2, branch-release-24.1, branch-release-24.2.


🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.2.x Flags PRs that need to be backported to 23.2. backport-24.1.x Flags PRs that need to be backported to 24.1. backport-24.2.x Flags PRs that need to be backported to 24.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sql/tests: TestRandomSyntaxSchemaChangeDatabase failed
3 participants