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

Schneems/debug deadlock #63

Merged
merged 3 commits into from
May 31, 2019
Merged

Schneems/debug deadlock #63

merged 3 commits into from
May 31, 2019

Conversation

schneems
Copy link
Contributor

No description provided.

When set, an env var will spawn a background thread that sleeps for the
given amount of time. At the end of that timeout period it will print
the backtrace for all threads that are alive, this should point to the
location where the code is frozen.
The mutex file in the reaper is used to ensure that only one process
will try to destroy apps given a multi process system. This is
accomplished via an `ensure` block. However this `ensure` block only
fires when the context is exited, and in the case where `retry` fires,
`ensure` is skipped.

This PR attempts to avoid deadlock by ensuring that the mutex file is
closed even when `retry` is called.
@schneems schneems merged commit e73a9f6 into master May 31, 2019
@edmorley edmorley deleted the schneems/debug-deadlock branch August 27, 2020 08:43
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.

1 participant