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 race condition creating log directory #2114

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

fenhl
Copy link
Collaborator

@fenhl fenhl commented Oct 14, 2023

This fixes a bug where, if 2 instances of the randomizer are running simultaneously, one may check for the existence of the log directory, the other then creates it, and then the first throws an exception because it already exists.

I am collecting stats on the failure rate of the randomizer to try to debug an issue with mixed pools bosses, and the bug fixed here is artificially inflating the failure rates.

@fenhl fenhl added Type: Bug Something isn't working Component: Randomizer Core Generally the core functions of the python labels Oct 14, 2023
@cjohnson57 cjohnson57 merged commit 7f1c988 into OoTRandomizer:Dev Nov 8, 2023
3 checks passed
@fenhl fenhl deleted the logdir-race branch November 8, 2023 23:37
@fenhl fenhl added this to the 8.0 milestone Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Randomizer Core Generally the core functions of the python Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants