Skip to content

Deadlock in MYSQL #1543

@kulla

Description

@kulla

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions