-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Batch calling of updateIssuesMeta
causes database deadlock
#17469
Comments
Blocked by I do not want to make huge conflicts between PRs. |
It seems it's also a backend bug. |
The bug is mostly related to frontend, the concurrency API calls are incorrect. For backend, not that related, the only thing it can do is wrapping the deadlock error and returning a friendly error response. The deadlocks can not be fully avoided in normal cases. |
The db should never deadlock - this is a backend bug. |
If two users update the same records at the same time with transactions, the database may report a dead lock. It is a correct database behavior. Database deadlock is not the same as code deadlock. If you need more information, I can explain more. For this problem (deadlock in |
Is this resolved? |
Not yet, I haven't got time for this. (If someone can help that's also very welcome) |
I proposed a simple fix, please review. |
Gitea Version
dev(main)
Description
Bug:
gitea/web_src/js/features/repo-legacy.js
Lines 87 to 91 in 141d1a2
It causes database deadlock and results in error response (some data can not be updated correctly, and the page can not be reloaded)
The text was updated successfully, but these errors were encountered: