-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Gitea lockup on adopting repository with sqlite #33561
Comments
The dump shows that the "adopt" operation is still running (and its sqlite transaction lock is still hold)
|
What are the build tags? IIRC using And maybe we should optimize the "adopt" code, to separate the db context and git context to avoid the long-running git command holds the lock. |
it's the standard set of tags: |
Maybe something like this: #33566 (I haven't really tested it, feel free to try it) |
…, fuzzy prompt, mirror proxy, adopt git) (go-gitea#33569) * Make artifact list output a stable order * Fix go-gitea#33506 * Fix go-gitea#33521 * Fix go-gitea#33288 * Fix go-gitea#33196 * Fix go-gitea#33561
Description
If someone tries to adopt a repository on their instance that has a large amount of tags (tested on linux repository) the entire instance hangs.
Reproduction steps:
/explore/repos
seems to work as demoExpected behavior:
Gitea returns a page for visitor as normal and continues to adopt the repository
Actual behavior:
Entire instance doesn't respond to any requests except those which don't need database query - curl on homepage for anonymous user works but
/explore/repos
endpoint doesn't.It does not happen with postgres, so I think it's sqlite specific - probably something to do with the entire thing being in transaction but I'm speculating at this point as I don't know enough about that area.
This does not happen with regular repository migration.
gitea-diagnosis-20250211-173242.zip
Gitea Version
1.23.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
linux
How are you running Gitea?
selfbuild, reproduced in container.
Database
SQLite
The text was updated successfully, but these errors were encountered: