Merge lp:~jelmer/launchpad/reduce-svn-revision-limit into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Graham Binns |
Approved revision: | no longer in the source branch. |
Merged at revision: | 14410 |
Proposed branch: | lp:~jelmer/launchpad/reduce-svn-revision-limit |
Merge into: | lp:launchpad |
Diff against target: |
12 lines (+1/-1) 1 file modified
lib/canonical/config/schema-lazr.conf (+1/-1) |
To merge this branch: | bzr merge lp:~jelmer/launchpad/reduce-svn-revision-limit |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | code | Approve | |
Review via email: mp+83697@code.launchpad.net |
Commit message
Reduce the import size of SVN code imports to 500 revisions.
Description of the change
Reduce the batch size of SVN code imports to 500 revisions.
Whenever importing a single revision that is part of a code import batch fails, the entire batch is cancelled and discarded. Some hosting sites have unreliable SVN servers that cause occasional connection resets. The larger the batch size, the likelier it is to be interrupted by one of these connection resets.
Reducing the batch size from 5000 to 500 should reduce the impact of these connection resets when they occur.
There is some overhead to each batch (fetching the import base branch, and pushing the branch back after the import), so decreasing the batch size means that large branches will slightly some more time. That should be insignificant compared to the overall run time though.
There is more that we can do to improve this situation - such as preserving the revisions that have already been imported when the server hangs up - but I'll leave that for another MP.
Hi Jelmer,
Is this something we can test, or is that just wild optimism on my part?