AssertionError: no lhs parent revmeta found for <bzrlib.plugins.svn.revmeta.CachingBzrMetaRevision object at 0x714aa70>

Bug #819584 reported by Jean-Paul Calderone
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Triaged
High
Unassigned

Bug Description

When pulling the same branch to two different checkouts sharing a repository, often this happens to one of them:

bzr: ERROR: Pack '70d4dafb35865ffb0b83bee3f119b06e' already exists in GCRepositoryPackCollection(CHKInventoryRepository('file:///var/lib/buildbot/bot-glyph-1/.bzr/repository/'))

Revision history for this message
Martin Pool (mbp) wrote :

I think this is a dupe of something else recently fixed (by John?) Can you reproduce this in 2.4b5?

Changed in bzr:
status: New → Incomplete
Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

Unfortunately I'm only seeing this on hardy right now. The bzr beta ppa, <https://launchpad.net/~bzr/+archive/beta>, doesn't appear to have hardy packages.

Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

Okay, scratch that. I *did* manage to reproduce on a Natty machine. When I tried to do a checkout, it took (is taking) ages.

Revision history for this message
Jean-Paul Calderone (exarkun) wrote :
Download full text (4.5 KiB)

Eventually the checkout finished. On irc jelmer suggested that it was slow because 2.4 copies more revisions than earlier versions of bzr did.

Shortly after it finished, this happened:

bzr: failed to report crash using apport:
     OSError(17, 'File exists')
bzr: ERROR: exceptions.AssertionError: no lhs parent revmeta found for <bzrlib.plugins.svn.revmeta.CachingBzrMetaRevision object at 0x714aa70>

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 946, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1150, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 699, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 721, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 1408, in run
    accelerator_tree, hardlink)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/branch.py", line 375, in create_checkout
    hardlink=hardlink)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/branch.py", line 320, in _create_heavyweight_checkout
    checkout_branch.pull(self, stop_revision=revision_id)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 1108, in pull
    possible_transports=possible_transports, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/branch.py", line 802, in pull
    stop_revision, overwrite)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/branch.py", line 734, in _update_revisions
    self.fetch(stop_revision=stop_revision, fetch_tags=fetch_tags)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/branch.py", line 705, in fetch
    d = resolve_tags_svn_ancestry(self.source, tag_revmetas)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/tags.py", line 94, in resolve_tags_svn_ancestry
    pb=pb):
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/repository.py", line 845, in _iter_reverse_revmeta_mapping_ancestry
    rhs_parent_foreign_revid, rhs_parent_mapping = self.lookup_bzr_revision_id(rhs_parent_revid, foreign_sibling=revmeta.metarev.get_foreign_revid())
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/repository.py", line 1064, in lookup_bzr_revision_id
    return self.revmap.get_branch_revnum(revid, layout, project)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/revids.py", line 290, in get_branch_revnum
    branch_path, min_revnum, max_revnum)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/revids.py", line 151, in bisect_fileprop_revid_revnum
    for propname, (oldpropvalue, propvalue) in revmeta.get_changed_fileprops().iteritems():
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/revmeta.py"...

Read more...

Jelmer Vernooij (jelmer)
tags: added: affects-twisted
Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 819584] Re: bzr: ERROR: Pack '...' already exists in GCRepositoryPackCollection(CHKInventoryRepository('file:///.../.bzr/repository/'))

  status confirmed

That looks like a different bug, perhaps one originating in bzr-svn.
Do you think so, Jelmer?

Martin

Changed in bzr:
status: Incomplete → Confirmed
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

On Mon, 2011-08-08 at 23:37 +0000, Martin Pool wrote:
> status confirmed
>
> That looks like a different bug, perhaps one originating in bzr-svn.
> Do you think so, Jelmer?

Yeah, that's definitely a different issue. I thought I'd squashed that
particular bug though, trying to reproduce here locally at the moment.

Cheers,

jelmer

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: bzr: ERROR: Pack '...' already exists in GCRepositoryPackCollection(CHKInventoryRepository('file:///.../.bzr/repository/'))

FWIW, the second issue doesn't occur here locally with bzr.dev and bzr-svn trunk so it'd be interesting to find out what's different on your setup that's causing this.

Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

You can have the repository that encountered the problem, if it would help.

Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

The "no lhs parent revmeta found" exception just happened again on a new repository.

Revision history for this message
Martin Pool (mbp) wrote :

exarkun if you can put a tarball on of the relevant branches on this bug that could help.

Revision history for this message
Martin Pool (mbp) wrote :

or, if it's private, contact jelmer out of band.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

have you tried removing the bzr-svn cache?

Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

Yes, I removed the bzr-svn cache. It didn't seem to make a difference. The repository and cache are available at <http://twistedmatrix.com/~exarkun/broken-buildbot-bzr-state.tar.bz2>. Please let me know when you have them so I don't have to keep hosting the file indefinitely.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

I've got the tarball, thanks.

Changed in bzr:
importance: Undecided → High
assignee: nobody → Jelmer Vernooij (jelmer)
status: Confirmed → In Progress
Jelmer Vernooij (jelmer)
summary: - bzr: ERROR: Pack '...' already exists in
- GCRepositoryPackCollection(CHKInventoryRepository('file:///.../.bzr/repository/'))
+ AssertionError: no lhs parent revmeta found for
+ <bzrlib.plugins.svn.revmeta.CachingBzrMetaRevision object at 0x714aa70>
affects: bzr → bzr-svn
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
assignee: Jelmer Vernooij (jelmer) → nobody
status: In Progress → Triaged
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.