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 concurrent writes in env list command #1182

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

zerok
Copy link
Contributor

@zerok zerok commented Oct 4, 2024

Fixes #1175

Unfortunately, this issue wasn't even visible with the BenchmarkFindEnvsFromPaths test running at more than 500 iterations. With running the env-list command with a new process every iteration, the error appeared after 30-120 runs. After applying this change, the error did not re-appear even after around 10K runs.

@zerok zerok requested a review from a team as a code owner October 4, 2024 06:24
@zerok zerok force-pushed the zerok/envlist-concurrent-write branch from ff92951 to ed03894 Compare October 7, 2024 06:53
@zerok zerok merged commit 5a3581d into main Oct 7, 2024
9 checks passed
@zerok zerok deleted the zerok/envlist-concurrent-write branch October 7, 2024 06:58
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.

"Concurrent map writes" on env list
2 participants