Open phoedos opened 2 months ago
Same issue here after upgrading from Gitea 1.21.8 to 1.22.3.
2024/10/16 08:42:52 ...eb/routing/logger.go:68:func1() [W] router: slow GET /CBSS/ssh-communication-trace/pulls/52/files for 172.19.0.2:34192, elapsed 3014.0ms @ repo/pull.go:900(repo.ViewPullFilesForAllCommitsOfPr) 2024/10/16 08:44:19 ...ers/web/repo/pull.go:746:viewPullFiles() [E] SyncAndGetUserSpecificDiff: context canceled 2024/10/16 08:44:19 ...eb/routing/logger.go:102:func1() [I] router: completed GET /CBSS/ssh-communication-trace/pulls/52/files for 172.19.0.2:34192, 500 Internal Server Error in 90007.3ms @ repo/pull.go:900(repo.ViewPullFilesForAllCommitsOfPr)
(It stops after 90 seconds because HAProxy timeout)
The PR isn't even very big (7 changed files with 1005 additions and 219 deletions).
What's also strange is that on some occasions the same page does respond quickly (Page: 1504ms Template: 1103ms).
Database: PostgreSQL 14
Description
Faced with long-time gitea work during view details of big PR
this request took up to 360(!) seconds to display page
tried made changes to indexer_type bleve->db->elasticsearch: no improvements tried to enable Postgresql query timing: no queries with latency >100ms. 99% of gitea queries hit in <10ms responce.
Issue reproduce stable on server/local environment (SSD/nVME m2 drives), typical hdparm from drive where gitea folder is mounted:
docker-compose.yml example
Gitea Version
1.22.1
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
docker-compose
Database
PostgreSQL