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

[20.10 backport] fix innocuous data-race when config.Load called in parallel #3410

Merged
merged 1 commit into from
Feb 18, 2022

Conversation

thaJeztah
Copy link
Member

backport of #3264

relates to / follow-up to / introduced in:

Locking was removed in #3025 which
allows for parallel calls to config.Load to modify global state.
The consequence in this case is innocuous, but it does trigger a
DATA RACE exception when tests run with -race option.

Locking was removed in docker#3025 which
allows for parallel calls to config.Load to modify global state.
The consequence in this case is innocuous, but it does trigger a
`DATA RACE` exception when tests run with `-race` option.

Signed-off-by: coryb <[email protected]>
(cherry picked from commit b5f4a6e)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added this to the 20.10.13 milestone Jan 27, 2022
@thaJeztah
Copy link
Member Author

@crazy-max @silvin-lubecki PTAL

@thaJeztah
Copy link
Member Author

Let me bring this one in; thanks for reviewing!

@thaJeztah thaJeztah merged commit 59a8a09 into docker:20.10 Feb 18, 2022
@thaJeztah thaJeztah deleted the 20.10_backport_fix_data_race branch February 18, 2022 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants