Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ahojnnes
Copy link
Contributor

@ahojnnes ahojnnes commented Nov 2, 2024

It turns out one cannot concurrent read from the database and begin a transaction. This could happen in rare cases during vocabulary tree based matching, as the querying of the vocabulary tree is performed concurrently to the main matching controller thread. In this case, one thread might simultaneously read and begin a transaction. This causes a deadlock if unlucky. With this PR, this cannot happen anymore.

@ahojnnes ahojnnes merged commit 073f2e4 into main Nov 2, 2024
@ahojnnes ahojnnes deleted the user/jsch/deadlock-database-transaction branch November 2, 2024 12:28
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.

3 participants