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 introduced in #2109 #2196

Closed
wants to merge 1 commit into from
Closed

Conversation

pavius
Copy link
Contributor

@pavius pavius commented Mar 27, 2022

In the before times (Feb 2020), we submitted this issue asking for feedback prior to submitting a PR:
#1608

In January of this year, some aspects of the fix were merged through #2109. We noticed, however, that a fix for a deadlock issue we found after about a year of running #1608 in heavy production did not make its way into #2109.

This was quite a while ago, so I do not recall the details of how exactly we recreated the issue but I definitely recall identifying hanging workers that printed "consumer/broker/%d accumulated %d new subscriptions" but not the expected subsequent logs. I also imagine that at the time I implemented this fix I tracked down the precise scenario where bc.wait would block and cause a deadlock... but I don't have this explanation at hand. Do with this PR what you will :)

@pavius
Copy link
Contributor Author

pavius commented Mar 27, 2022

Ah, wait. I just noticed #2194. Ignore this then.

@pavius pavius closed this Mar 27, 2022
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