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

Mitigate race condition when under load #43

Merged
merged 3 commits into from
Jun 15, 2024

Conversation

TheFirstAvenger
Copy link
Member

When under high parallel load, multiple requests to check if the trace has already started can get through a race condition and throw an error. The race condition exists because #24 swapped us from a GenServer to an ETS table because the GenServer mailbox was getting overloaded. We now check that condition and don't start a trace (the parallel load state this happens in ensures that a trace will start for at least one of the calls).

Fixes #41.

@TheFirstAvenger TheFirstAvenger enabled auto-merge (squash) June 15, 2024 16:36
@TheFirstAvenger TheFirstAvenger merged commit eade0ed into main Jun 15, 2024
1 check passed
@TheFirstAvenger TheFirstAvenger deleted the mb-41-handle-table-not-started branch June 15, 2024 16:38
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.

table not found on subsequent "Flame On!" usage
1 participant