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

fix: testutil/configurator: correctly create fresh copy of defaultConfig #17089

Conversation

odeke-em
Copy link
Collaborator

This change fixes a data race that was caused by incorrectly copying the defaultConfig, a pointer value and that "copied value" was passed around to independent tests yet they were all mutating the same value. The fix involves creating a true/correct fresh copy each time.

Fixes #17081

This change fixes a data race that was caused by incorrectly copying
the defaultConfig, a pointer value and that "copied value" was passed around
to independent tests yet they were all mutating the same value.
The fix involves creating a true/correct fresh copy each time.

Fixes #17081
@odeke-em odeke-em requested a review from a team as a code owner July 21, 2023 23:35
@julienrbrt julienrbrt added backport/v0.47.x PR scheduled for inclusion in the v0.47's next stable release backport/v0.50.x PR scheduled for inclusion in the v0.50's next stable release labels Jul 21, 2023
@julienrbrt julienrbrt added this pull request to the merge queue Jul 22, 2023
Merged via the queue into main with commit 0fa85b7 Jul 22, 2023
@julienrbrt julienrbrt deleted the testutil-configurator-create-fresh-config-instead-of-same-pointer-copy branch July 22, 2023 07:40
mergify bot pushed a commit that referenced this pull request Jul 22, 2023
mergify bot pushed a commit that referenced this pull request Jul 22, 2023
…fig (#17089)

(cherry picked from commit 0fa85b7)

# Conflicts:
#	testutil/configurator/configurator.go
julienrbrt pushed a commit that referenced this pull request Jul 22, 2023
julienrbrt added a commit that referenced this pull request Jul 23, 2023
…fig (backport #17089) (#17092)

Co-authored-by: Emmanuel T Odeke <emmanuel@orijtech.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
@faddat faddat mentioned this pull request Nov 8, 2024
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v0.47.x PR scheduled for inclusion in the v0.47's next stable release backport/v0.50.x PR scheduled for inclusion in the v0.50's next stable release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky integration configuration
2 participants