Skip to content

[DATAJDBC-488] Resolves an issue with deadlocks in the order of update execution. #191

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

Closed
wants to merge 1 commit into from
Closed

[DATAJDBC-488] Resolves an issue with deadlocks in the order of update execution. #191

wants to merge 1 commit into from

Conversation

mhyeon-lee
Copy link
Contributor

@mhyeon-lee mhyeon-lee commented Feb 14, 2020

DATAJDBC-488

@mhyeon-lee mhyeon-lee requested a review from schauder February 14, 2020 09:22
schauder pushed a commit that referenced this pull request Feb 21, 2020
The previous process of deleting referencing entities, updating the root and then inserting referencing entities hat the potential of causing deadlocks.
When one process didn't obtain a lock on delete because there wasn't anything to delete root and referencing entities got locks in opposite order, which is a classical cause for deadlocks.

Original pull request: #191.
schauder added a commit that referenced this pull request Feb 21, 2020
JdbcRepositoryConcurrencyIntegrationTests now only runs with MySql instead of always with MySql.
Also modified it to not use sleep.
Copyright header added.
Formatting.

Original pull request: #191.
schauder pushed a commit that referenced this pull request Feb 21, 2020
The previous process of deleting referencing entities, updating the root and then inserting referencing entities hat the potential of causing deadlocks.
When one process didn't obtain a lock on delete because there wasn't anything to delete root and referencing entities got locks in opposite order, which is a classical cause for deadlocks.

Original pull request: #191.
schauder added a commit that referenced this pull request Feb 21, 2020
JdbcRepositoryConcurrencyIntegrationTests now only runs with MySql instead of always with MySql.
Also modified it to not use sleep.
Copyright header added.
Formatting.

Original pull request: #191.
@schauder
Copy link
Contributor

That is polished and merged. Thanks.

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.

2 participants