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: prevent data race in some occasions #3862

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

skrtheboss
Copy link

All fixed data races have been observed by using the -race go utility.

Originally my buildkit deamon was crashing due to a very similar error as reported on #2041, so I started debugging and found some other race conditions and now my log is clean, no more WARNING: DATA RACE message.

I am not sure if the approach I used is correct, just let me know if I need to change something.

@skrtheboss
Copy link
Author

All tests are passing on my fork skrtheboss#1

@tonistiigi
Copy link
Member

Thanks for this. These do need to be all separately validated so that there isn't a performance regression or a deadlock.

If some of them are simpler to reason about than others, feel free to open separate PRs for them so they can potentially get reviewed quicker.

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.

2 participants