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

test(bigquery/storage/managedwriter): address data race #6249

Merged
merged 1 commit into from Jun 23, 2022

Conversation

shollyman
Copy link
Contributor

@shollyman shollyman commented Jun 23, 2022

Ironically, the test to do more concurrent things to trigger a specific
kind of race condition itself added a new kind of concurrency data race.

This switches from using shared variables for checking results to
goroutine-local versions.

Fixes: #6171

Ironically, the test to do more concurrent things to trigger a specific
kind of race condition itself added a new kind of concurrency data race.

This switches from using shared variables for checking results to
goroutine-local versions.
@shollyman shollyman requested review from codyoss and a team June 23, 2022 21:52
@shollyman shollyman requested a review from a team as a code owner June 23, 2022 21:52
@shollyman shollyman requested a review from prash-mi June 23, 2022 21:52
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: bigquery Issues related to the BigQuery API. labels Jun 23, 2022
@shollyman shollyman enabled auto-merge (squash) June 23, 2022 21:52
@shollyman shollyman requested review from steffnay and removed request for codyoss and prash-mi June 23, 2022 22:01
@shollyman shollyman merged commit 1bd770e into googleapis:main Jun 23, 2022
@shollyman shollyman deleted the fix-test-datarace branch June 23, 2022 22:16
shollyman added a commit to shollyman/google-cloud-go that referenced this pull request Jun 23, 2022
Picks up googleapis#6249, a minor fix to testing
shollyman added a commit that referenced this pull request Jun 23, 2022
Picks up #6249, a minor fix to testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API. size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bigquery/storage/managedwriter: TestIntegration_ManagedWriter failed
2 participants