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 deadlock in dispatch_loop #496

Conversation

midnight-wonderer
Copy link

Fix #495
There is a possibility of a deadlock in dispatch_loop; this issue won't appear on sufficiently fast machines. The workers must be saturated with jobs as a condition for the lock.

I tracked down the issue by implementing parts of the CLI and reverted the changes scoping down what was relevant, bisecting style. This is what remained after the process. (It took me 3 days because each reproduction took a lot of time.)

This fixed the issue in my setup.
I don't know a good way to create tests for this, so I created the pull request as-is.

@midnight-wonderer
Copy link
Author

I'll fix the failing tests.

@midnight-wonderer
Copy link
Author

Closed in favor of #497.
This PR helped me understand more about the underlying issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bootsnap causes kamal setup to hang in Ruby 3.3.5
1 participant