BzrCheckError: Internal check failed: record_stream refers to compression parents not in KnitVersionedFiles

Bug #318991 reported by Brian Gough
2
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned
Breezy
Triaged
Undecided
Unassigned

Bug Description

Attempting a checkout of the guile-gnome bzr repo gives the following error.
The same problem occurs with bzr 1.9 and bzr 1.10.
I am reporting it as the error message requests this.
Also attached, bzr check --verbose of the repository.

$ PYTHONPATH=/opt/bzr-dev/lib/python /opt/bzr-dev/bin/bzr checkout http://arch.gna.org/guile-gnome/bzr/pkg guile-gnome-platform
Format <RepositoryFormatKnit1> for http://arch.gna.org/guile-gnome/bzr/pkg/.bzr/ is deprecated - please use 'bzr upgrade' to get better performance
bzr: ERROR: bzrlib.errors.BzrCheckError: Internal check failed: record_stream refers to compression parents not in KnitVersionedFiles(<bzrlib.knit._KndxIndex object at 0x903416c>, <bzrlib.knit._KnitKeyAccess object at 0x903418c>):
[('x_743dfd52-64cc-467d-bc4c-337be0c37bd8',
  'Arch-1:<email address hidden>%pkg--dev--0--patch-6'),
 ('x_743dfd52-64cc-467d-bc4c-337be0c37bd8',
  'Arch-1:<email address hidden>%guile-gnome-pkg--release--0--patch-6')]

Traceback (most recent call last):
  File "/opt/bzr-dev/lib/python/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/opt/bzr-dev/lib/python/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/opt/bzr-dev/lib/python/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/opt/bzr-dev/lib/python/bzrlib/builtins.py", line 1134, in run
    accelerator_tree, hardlink)
  File "/opt/bzr-dev/lib/python/bzrlib/branch.py", line 838, in create_checkout
    checkout_branch.pull(self, stop_revision=revision_id)
  File "/opt/bzr-dev/lib/python/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/opt/bzr-dev/lib/python/bzrlib/branch.py", line 1963, in pull
    _override_hook_target=_override_hook_target)
  File "/opt/bzr-dev/lib/python/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/opt/bzr-dev/lib/python/bzrlib/branch.py", line 1763, in pull
    graph=graph)
  File "/opt/bzr-dev/lib/python/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/opt/bzr-dev/lib/python/bzrlib/branch.py", line 524, in update_revisions
    self.fetch(other, stop_revision)
  File "/opt/bzr-dev/lib/python/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/opt/bzr-dev/lib/python/bzrlib/branch.py", line 286, in fetch
    pb=nested_pb)
  File "/opt/bzr-dev/lib/python/bzrlib/repository.py", line 1118, in fetch
    find_ghosts=find_ghosts)
  File "/opt/bzr-dev/lib/python/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/opt/bzr-dev/lib/python/bzrlib/repository.py", line 2875, in fetch
    pb=pb, find_ghosts=find_ghosts)
  File "/opt/bzr-dev/lib/python/bzrlib/fetch.py", line 113, in __init__
    self.__fetch()
  File "/opt/bzr-dev/lib/python/bzrlib/fetch.py", line 143, in __fetch
    self._fetch_everything_for_search(search, pp)
  File "/opt/bzr-dev/lib/python/bzrlib/fetch.py", line 186, in _fetch_everything_for_search
    not self.to_repository._fetch_uses_deltas))
  File "/opt/bzr-dev/lib/python/bzrlib/knit.py", line 1483, in insert_record_stream
    % (self, pformat(sorted(buffered_index_entries.keys()))))
BzrCheckError: Internal check failed: record_stream refers to compression parents not in KnitVersionedFiles(<bzrlib.knit._KndxIndex object at 0x903416c>, <bzrlib.knit._KnitKeyAccess object at 0x903418c>):
[('x_743dfd52-64cc-467d-bc4c-337be0c37bd8',
  'Arch-1:<email address hidden>%pkg--dev--0--patch-6'),
 ('x_743dfd52-64cc-467d-bc4c-337be0c37bd8',
  'Arch-1:<email address hidden>%guile-gnome-pkg--release--0--patch-6')]

bzr 1.12dev on python 2.5.1 (linux2)
arguments: ['/opt/bzr-dev/bin/bzr', 'checkout', 'http://arch.gna.org/guile-gnome/bzr/pkg', 'guile-gnome-platform']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_GB.utf8'
plugins:
  launchpad /opt/bzr-dev/lib/python/bzrlib/plugins/launchpad [unknown]
  netrc_credential_store /opt/bzr-dev/lib/python/bzrlib/plugins/netrc_credential_store [unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Revision history for this message
Brian Gough (bjg-gnu) wrote :
Revision history for this message
Andrew Bennetts (spiv) wrote :

Looks likely to be an issue in a conversion made with an earlier version of bzr, but we should confirm that it's not an issue in bzr.dev. And we should fix the affected repo... possibly "bzr reconcile" will be enough.

Changed in bzr:
importance: Undecided → High
milestone: none → 1.12rc1
status: New → Confirmed
Changed in bzr:
milestone: 1.12rc1 → none
Jelmer Vernooij (jelmer)
tags: added: ghost
tags: added: baz-import
Jelmer Vernooij (jelmer)
tags: added: knits
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
Changed in brz:
status: New → 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.