large bzr-svn imports fail with branch.fetch_tags enabled

Bug #797915 reported by Michael Hudson-Doyle
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
Medium
Jelmer Vernooij
Launchpad itself
Fix Released
Critical
Jelmer Vernooij
gcc-4.6 (Ubuntu)
Invalid
Critical
Unassigned
Oneiric
Invalid
Critical
Unassigned

Bug Description

This seems new since the last rollout, see for example https://code.launchpad.net/~vcs-imports/gcc/trunk

Note that "Failure: twisted.internet.error.TimeoutError: User timeout caused connection failure." is code for the import job being killed because there was no output on stdout for an hour.

Apparently it's something to do with tags.

Related branches

tags: added: code-import
Changed in launchpad:
status: New → Triaged
importance: Undecided → Critical
tags: added: regression
description: updated
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Jelmer Vernooij (jelmer)
Changed in launchpad:
assignee: nobody → Jelmer Vernooij (jelmer)
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
status: Triaged → In Progress
milestone: none → 1.1.0
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

bzr now fetches not just tag metadata but all tagged revisions as well. This causes a significant increase in the number of revisions fetched, which causes this particular timeout.

Revision history for this message
Matthias Klose (doko) wrote :

blocks the packaging and upload of the gcc-4.6.1 release for oneiric (linaro needs to merge this first)

Changed in gcc-4.6 (Ubuntu):
importance: Undecided → Critical
milestone: none → oneiric-alpha-2
status: New → Confirmed
Revision history for this message
Kate Stewart (kate.stewart) wrote :

This is going to affect the ubuntu 11.10 (esp. with feature freeze) release - due to the dependency chain between the compiler and hence the arm linux builds.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

I don't know how relevant the point is, but one way out of this would be more progress during the importing of the tagged revisions -- the jobs are only killed after an hour of no output at all.

Another option would be to raise the timeout in the system to allow the imports to pass. This will mean more impact from imports that get genuinely stuck of course, but it might be appropriate for a temporary hack. Do you know what we'd need to lift the timeout to?

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 797915] Re: large bzr-svn imports failing

On 29/06/11 02:18, Michael Hudson-Doyle wrote:
> I don't know how relevant the point is, but one way out of this would be
> more progress during the importing of the tagged revisions -- the jobs
> are only killed after an hour of no output at all.
>
> Another option would be to raise the timeout in the system to allow the
> imports to pass. This will mean more impact from imports that get
> genuinely stuck of course, but it might be appropriate for a temporary
> hack. Do you know what we'd need to lift the timeout to?
Memory usage is the main problem as far as I can tell. The memory usage
is not just affecting the bzr-svn imports in question but also the other
imports on the same machine, as they force the machine into swap. I'm a
bit wary of making these imports time out later, the current timeout is
already quite high.

Cheers,

Jelmer

Jelmer Vernooij (jelmer)
Changed in launchpad:
status: Triaged → In Progress
Revision history for this message
Steve Langasek (vorlon) wrote : Re: large bzr-svn imports failing

Oneiric unblocked by a by-hand import (thanks, Jelmer!); this should be enough to let Linaro move forward with 4.6.1 AIUI.

Changed in gcc-4.6 (Ubuntu Oneiric):
status: Confirmed → Invalid
Revision history for this message
John A Meinel (jameinel) wrote :

Jelmer and I discussed a bit at the last sprint trying to help with the memory issue for bzr-svn. For tags, I guess it currently requests the full history of each tag into an iterator, expecting to stop it at some point (once it reaches 'trunk'). Instead, we could be presumptuous that tagged revisions won't exist far from trunk and only request short histories. And then if something hasn't converged yet, re-start the iterator.

As for the 'no output for 1hr', that sounds like just adding more "I've gotten some data" ticks would be reasonable.

Jelmer Vernooij (jelmer)
summary: - large bzr-svn imports failing
+ large bzr-svn imports fail with branch.fetch_tags enabled
Changed in bzr-svn:
milestone: 1.1.0 → 1.1.1
status: In Progress → Triaged
importance: High → Medium
status: Triaged → Fix Released
milestone: 1.1.1 → none
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
William Grant (wgrant)
tags: added: qa-ok
removed: qa-needstesting
Jelmer Vernooij (jelmer)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.