AssertionError: Somehow we ended up with too much compressed data, 4108 > 4096

Bug #934271 reported by Vincent Ladeuil
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned

Bug Description

Encountered while debugging somwthing else for the package importer.

The first thing that comes to mind is that I was using a bzr branch where the extensions weren't compiled (revno 6451 with branch lp:~vila/bzr/924746-http-fileobj

Running 'iimport-package --no-push --keep-temp --local-branches phpbb3' with it should reproduce the issue.

The following traceback hints that it's related to repacking which is probably not as well tested for the pure python version:

Traceback (most recent call last):
  File "/h3t1/vila-tests/pkgimport/scripts/bin/import-package", line 7, in <module>
    main()
  File "/h3t1/vila-tests/pkgimport/scripts/udd/scripts/import_package.py", line 1177, in main
    only_before=options.only_before))
  File "/h3t1/vila-tests/pkgimport/scripts/udd/scripts/import_package.py", line 1078, in _import_package
    bstore, push, possible_transports=possible_transports)
  File "/h3t1/vila-tests/pkgimport/scripts/udd/scripts/import_package.py", line 638, in import_package
    use_time_from_changelog=True)
  File "/home/vila/.bazaar/plugins/builddeb/import_dsc.py", line 1243, in import_package
    pull_debian=pull_debian)
  File "/home/vila/.bazaar/plugins/builddeb/import_dsc.py", line 1146, in _import_normal_package
    file_ids_from=file_ids_from)
  File "/home/vila/.bazaar/plugins/builddeb/import_dsc.py", line 874, in import_upstream
    exclude=exclude)
  File "/home/vila/.bazaar/plugins/builddeb/upstream/pristinetar.py", line 234, in import_component_tarball
    revid = builder.commit(message)
  File "/home/vila/src/bzr/bugs/924746-http-fileobj/bzrlib/vf_repository.py", line 211, in commit
    self.repository.commit_write_group()
  File "/home/vila/src/bzr/bugs/924746-http-fileobj/bzrlib/repository.py", line 633, in commit_write_group
    result = self._commit_write_group()
  File "/home/vila/src/bzr/bugs/924746-http-fileobj/bzrlib/repofmt/pack_repo.py", line 1727, in _commit_write_group
    hint = self._pack_collection._commit_write_group()
  File "/home/vila/src/bzr/bugs/924746-http-fileobj/bzrlib/repofmt/pack_repo.py", line 1629, in _commit_write_group
    result = self.autopack()
  File "/home/vila/src/bzr/bugs/924746-http-fileobj/bzrlib/repofmt/pack_repo.py", line 888, in autopack
    return self._do_autopack()
  File "/home/vila/src/bzr/bugs/924746-http-fileobj/bzrlib/repofmt/pack_repo.py", line 928, in _do_autopack
    reload_func=self._restart_autopack)
  File "/home/vila/src/bzr/bugs/924746-http-fileobj/bzrlib/repofmt/pack_repo.py", line 947, in _execute_pack_operations
    result = packer.pack()
  File "/home/vila/src/bzr/bugs/924746-http-fileobj/bzrlib/repofmt/pack_repo.py", line 716, in pack
    return self._create_pack_from_packs()
  File "/home/vila/src/bzr/bugs/924746-http-fileobj/bzrlib/repofmt/groupcompress_repo.py", line 509, in _create_pack_from_packs
    self.new_pack.finish()
  File "/home/vila/src/bzr/bugs/924746-http-fileobj/bzrlib/repofmt/pack_repo.py", line 488, in finish
    self._write_index('text', self.text_index, 'file texts', suspend)
  File "/home/vila/src/bzr/bugs/924746-http-fileobj/bzrlib/repofmt/pack_repo.py", line 545, in _write_index
    index_tempfile = index.finish()
  File "/home/vila/src/bzr/bugs/924746-http-fileobj/bzrlib/btree_index.py", line 449, in finish
    return self._write_nodes(self.iter_all_entries())[0]
  File "/home/vila/src/bzr/bugs/924746-http-fileobj/bzrlib/btree_index.py", line 398, in _write_nodes
    self._add_key(string_key, line, rows, allow_optimize=allow_optimize)
  File "/home/vila/src/bzr/bugs/924746-http-fileobj/bzrlib/btree_index.py", line 333, in _add_key
    rows[-1].finish_node()
  File "/home/vila/src/bzr/bugs/924746-http-fileobj/bzrlib/btree_index.py", line 75, in finish_node
    byte_lines, _, padding = self.writer.finish()
  File "/home/vila/src/bzr/bugs/924746-http-fileobj/bzrlib/chunk_writer.py", line 144, in finish
    % (self.bytes_out_len, self.chunk_size))
AssertionError: Somehow we ended up with too much compressed data, 4108 > 4096

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.