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

Try to avoid deadlock in Distributed test #38714

Merged
merged 1 commit into from
Dec 7, 2020
Merged

Try to avoid deadlock in Distributed test #38714

merged 1 commit into from
Dec 7, 2020

Conversation

Keno
Copy link
Member

@Keno Keno commented Dec 5, 2020

What I believe is happening here is that, since put! is a yield point, the remote call finishes
and the async task gets run before the wait statement is reached, thus causing a deadlock.
I don't have 100% proof that this is the issue, but I did see the test hanging during this test,
so I figured it's worth a try. May help #38712 (particularly, the second of the linked test failures).

What I believe is happening here is that, since put! is a yield point, the remote call finishes
and the async task gets run before the `wait` statement is reached, thus causing a deadlock.
I don't have 100% proof that this is the issue, but I did see the test hanging during this test,
so I figured it's worth a try. May help #38712 (particularly, the second of the linked test failures).
@Keno Keno requested a review from JeffBezanson December 5, 2020 04:06
@Keno
Copy link
Member Author

Keno commented Dec 5, 2020

This doesn't seem to help :(

@Keno
Copy link
Member Author

Keno commented Dec 5, 2020

I'm having some trouble debugging this. I guess #32283 might help.

Copy link
Member

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a good improvement anyways

@Keno Keno merged commit d06c2a9 into master Dec 7, 2020
@Keno Keno deleted the kf/distdeadlock branch December 7, 2020 02:22
Keno added a commit that referenced this pull request Jun 5, 2024
What I believe is happening here is that, since put! is a yield point, the remote call finishes
and the async task gets run before the `wait` statement is reached, thus causing a deadlock.
I don't have 100% proof that this is the issue, but I did see the test hanging during this test,
so I figured it's worth a try. May help #38712 (particularly, the second of the linked test failures).
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.

2 participants