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 mysql deadlock #1787

Merged
merged 1 commit into from
Oct 29, 2024
Merged

Fix mysql deadlock #1787

merged 1 commit into from
Oct 29, 2024

Conversation

hugotiburtino
Copy link
Member

@hugotiburtino hugotiburtino commented Oct 29, 2024

@kulla

The merging of dependabots is getting stuck because of the deadlock. It is caused by the fact that we trying to do two inserts at the same time in the addRole functions, while the mysql is locking the tables.

Although there was discussion for adding roles that don't exist yet, it seems unnecessary now. So removing the insert of an automatic creation of role will solve it.

As a followup we can throw an error, report and adapt the tests (what can be pretty annoying since the dummy database doesn't have at the moment the used roles in code).

@hugotiburtino hugotiburtino requested a review from kulla October 29, 2024 19:48
@hugotiburtino hugotiburtino marked this pull request as ready for review October 29, 2024 19:48
@hugotiburtino hugotiburtino merged commit 512c324 into staging Oct 29, 2024
9 checks passed
@hugotiburtino hugotiburtino deleted the fix-deadlock-add-role branch October 29, 2024 19:49
@hugotiburtino hugotiburtino linked an issue Oct 30, 2024 that may be closed by this pull request
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.

Deadlock in MYSQL
1 participant