Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(enterprise/coderd): prevent deadlock during entitlements update #8215

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

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

mafredri
Copy link
Member

Not sure if this only applies to the in-memory database, but we had a situation where we were read locking the entitlements mutex inside a database transaction, but unable to because we had already taken the write lock for updating entitlements... which were doing database requests that were blocked due to the transaction.

https://github.com/coder/coder/actions/runs/5380614126/jobs/9763591306?pr=8170

@mafredri mafredri changed the title fix(enterprise/coderd): avoid deadlock during entitlements update fix(enterprise/coderd): prevent deadlock during entitlements update Jun 26, 2023
@mafredri mafredri marked this pull request as ready for review June 26, 2023 17:20
@mafredri mafredri merged commit 31076ad into main Jun 26, 2023
@mafredri mafredri deleted the mafredri/fix-coderd-entitlements-deadlock branch June 26, 2023 17:22
@github-actions github-actions bot locked and limited conversation to collaborators Jun 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants