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

Deadlock in MYSQL #1543

Open
kulla opened this issue May 28, 2024 · 0 comments · Fixed by #1787
Open

Deadlock in MYSQL #1543

kulla opened this issue May 28, 2024 · 0 comments · Fixed by #1787
Labels
bug Something isn't working

Comments

@kulla
Copy link
Member

kulla commented May 28, 2024

What is wrong?

Sometimes MySQL deadlocks can occur which would result in internal server errors.

Steps to reproduce

  1. Change the tests for delete-bots or delete-regular-users so that user with ID 1 gets deleted.
  2. Run yarn test two times
  3. At the second run a deadlock error is thrown in creating events (file event-types.ts in the tests).

How should it behave?

In Deadlocks the transaction should be replayed with a delay.

Proposed Solution

I tried to fix the issue in #1542 but it does not work. Maybe one can use the code there.

@kulla kulla added the bug Something isn't working label May 28, 2024
@hugotiburtino hugotiburtino linked a pull request Oct 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant