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

Transaction - Avoid dead lock #19

Open
stombre opened this issue Sep 15, 2020 · 0 comments
Open

Transaction - Avoid dead lock #19

stombre opened this issue Sep 15, 2020 · 0 comments
Labels
available for contribution If you search issue, you could contribute in component - transaction Subject related to Transaction enhancement New feature or request good first issue Good for newcomers

Comments

@stombre
Copy link
Contributor

stombre commented Sep 15, 2020

Explanation

Dead lock is the situation where two process lock data in a way that we can not move forward.
For example, if process 1 lock A after B, and process 2 lock B after A,
we could have a scenario where the process 1 wait for B, and the process 2 wait for A, and both lock what the other is waiting for.

Ilorm behavior

We could track in which order table / model are called, and throw exception, if we are in case we could lead to death lock.

This system, could eventually be hidden behind a flag, is used only for debugging purpose, or better; in a separate plugin.

@stombre stombre added available for contribution If you search issue, you could contribute in component - transaction Subject related to Transaction enhancement New feature or request good first issue Good for newcomers labels Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
available for contribution If you search issue, you could contribute in component - transaction Subject related to Transaction enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant