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

autoconfig: prevent a data race in TestAutoConfig #101076

Merged
merged 3 commits into from
Apr 10, 2023

Conversation

knz
Copy link
Contributor

@knz knz commented Apr 10, 2023

Needed for #101069.

The calls to Peek and Pop can run concurrently.

Release note: None
Epic: CRDB-23559

@knz knz requested a review from jeffswenson April 10, 2023 14:30
@knz knz requested a review from a team as a code owner April 10, 2023 14:30
@cockroach-teamcity
Copy link
Member

This change is Reviewable

The calls to Peek and Pop can run concurrently.

Release note: None
@knz knz force-pushed the 20230410-fix-race branch from 6c65840 to 7e9b1ea Compare April 10, 2023 16:11
@knz
Copy link
Contributor Author

knz commented Apr 10, 2023

TFYR!

bors r=adityamaru

@craig
Copy link
Contributor

craig bot commented Apr 10, 2023

This PR was included in a batch that was canceled, it will be automatically retried

@craig
Copy link
Contributor

craig bot commented Apr 10, 2023

Build failed (retrying...):

@knz
Copy link
Contributor Author

knz commented Apr 10, 2023

bors r-

@craig
Copy link
Contributor

craig bot commented Apr 10, 2023

Canceled.

Before this change, the test was kicking off tasks concurrently with
version upgrades. To reduce noise in logs, this patch fixes it to make
it wait until upgrades have completed.

Release note: None
@knz
Copy link
Contributor Author

knz commented Apr 10, 2023

bors r=adityamaru

@knz
Copy link
Contributor Author

knz commented Apr 10, 2023

bors r-

@craig
Copy link
Contributor

craig bot commented Apr 10, 2023

Canceled.

@knz
Copy link
Contributor Author

knz commented Apr 10, 2023

bors r=adityamaru

@craig craig bot merged commit 668ec8d into cockroachdb:master Apr 10, 2023
@craig
Copy link
Contributor

craig bot commented Apr 10, 2023

Build succeeded:

@knz knz deleted the 20230410-fix-race branch April 10, 2023 21:35
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