You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deployment mode: tomcat
Requests to /api/v3/repos/:owner/:repository/branches are very slow for repositories that have stale branches.
Those are branches with many commits behind master (thousands).
The problem is also visible in the loading of the branch view of a repo.
I think I tracked it down to the problem that loading the branches also walks through commits to find the number if diverging commits.
This takes 10s of seconds for our repo. This also results in Jenkins repo scan for new branches and tags failing with a timeout.
A solution probably needs to either make the rev walking faster or at least don't do it for the API request.
The text was updated successfully, but these errors were encountered:
Issue
Impacted version: 4.39.0
Deployment mode: tomcat
Requests to
/api/v3/repos/:owner/:repository/branches
are very slow for repositories that have stale branches.Those are branches with many commits behind master (thousands).
The problem is also visible in the loading of the branch view of a repo.
I think I tracked it down to the problem that loading the branches also walks through commits to find the number if diverging commits.
This takes 10s of seconds for our repo. This also results in Jenkins repo scan for new branches and tags failing with a timeout.
A solution probably needs to either make the rev walking faster or at least don't do it for the API request.
The text was updated successfully, but these errors were encountered: