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 on return-early on not_found during WaitForApproval #514

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

sfc-gh-mwalas
Copy link
Collaborator

In the mpa flow we could end up with servers getting into "close to deadlock" state as we failed to release mutex in one of the branches of the mpa flow.

@sfc-gh-mwalas sfc-gh-mwalas changed the title Fixing deadlock on return-early on not_found during WaitForApproval Fix deadlock on return-early on not_found during WaitForApproval Nov 20, 2024
Copy link

@sfc-gh-lgrabowski sfc-gh-lgrabowski left a comment

Choose a reason for hiding this comment

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

yeah, unlock in mutex in a loop and no way to defer it! Great catch!

@sfc-gh-mwalas sfc-gh-mwalas merged commit 9ed2b08 into main Nov 20, 2024
7 checks passed
@sfc-gh-mwalas sfc-gh-mwalas deleted the mwalas-mpa-lock-race branch November 20, 2024 09:40
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.

3 participants