Import from mercurial (bitbucket.org) fails with "RuntimeError: maximum recursion depth exceeded"

Bug #914719 reported by denis
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
New
Undecided
Unassigned

Bug Description

I had a successful import 4 hours ago but all recent import fail with the exception:

[Failure] Import started 6 minutes ago on neumayer and finished 5 minutes ago taking 40 seconds — see the log
[Failure] Import started 8 minutes ago on neumayer and finished 7 minutes ago taking 50 seconds — see the log
[Failure] Import started 9 minutes ago on galapagos and finished 9 minutes ago taking 50 seconds — see the log
[Failure] Import started 13 minutes ago on russkaya and finished 12 minutes ago taking 1 minute — see the log
[Success] Import started 4 hours ago on pear and finished 4 hours ago taking 5 minutes — see the log

2012-01-11 11:44:28 INFO Starting job.
2012-01-11 11:44:28 INFO Getting exising bzr branch from central store.
2012-01-11 11:44:28 INFO [chan bzr SocketAsChannelAdapter] Opened sftp connection (server version 3)
2012-01-11 11:44:28 INFO 35 bytes transferred
2012-01-11 11:44:31 INFO [chan bzr SocketAsChannelAdapter] Opened sftp connection (server version 3)
2012-01-11 11:44:48 INFO Importing branch.
2012-01-11 11:44:49 INFO fetching changesets 0
2012-01-11 11:44:49 INFO
Traceback (most recent call last):
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/scripts/code-import-worker.py", line 99, in <module>
    sys.exit(script.main())
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/scripts/code-import-worker.py", line 94, in main
    return import_worker.run()
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/lib/lp/codehosting/codeimport/worker.py", line 591, in run
    return self._doImport()
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/lib/lp/codehosting/codeimport/worker.py", line 745, in _doImport
    inter_branch.fetch(limit=revision_limit)
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/bzrplugins/hg/branch.py", line 483, in fetch
    inter.fetch(revision_id=stop_revision, limit=limit)
  File "<string>", line 4, in fetch_write_locked
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/bzrplugins/hg/fetch.py", line 766, in fetch
    self.addchangegroup(cg, mapping, limit=limit)
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/bzrplugins/hg/fetch.py", line 624, in addchangegroup
    self._target_overlay.remember_manifest_texts(manifests)
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/bzrplugins/hg/overlay.py", line 132, in remember_manifest_texts
    ((FulltextContentFactory((revid,), [(p,) for p in parent_revids], None, str(text)) for (revid, parent_revids, text) in entries)))
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/eggs/bzr-2.5.0dev2_r6152-py2.6-linux-i686.egg/bzrlib/knit.py", line 1589, in insert_record_stream
    for record in stream:
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/bzrplugins/hg/overlay.py", line 132, in <genexpr>
    ((FulltextContentFactory((revid,), [(p,) for p in parent_revids], None, str(text)) for (revid, parent_revids, text) in entries)))
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/bzrplugins/hg/fetch.py", line 594, in _unpack_manifests
    for i, (fulltext, hgkey, hgparents, csid) in enumerate(chunks):
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/bzrplugins/hg/parsers.py", line 166, in unpack_chunk_iter
    textbase = lookup_base(base)
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/bzrplugins/hg/overlay.py", line 226, in get_manifest_text
    return self.get_manifest_text_by_revid(revid)
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/bzrplugins/hg/overlay.py", line 241, in get_manifest_text_by_revid
    (manifest, flags) = self.get_manifest_and_flags_by_revid(revid)
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/bzrplugins/hg/overlay.py", line 272, in get_manifest_and_flags_by_revid
    return self._reconstruct_manifest_and_flags_by_revid(revid)
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/bzrplugins/hg/overlay.py", line 280, in _reconstruct_manifest_and_flags_by_revid
    parent_manifest = self.get_manifest_and_flags_by_revid(p)[0]
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/bzrplugins/hg/overlay.py", line 272, in get_manifest_and_flags_by_revid
    return self._reconstruct_manifest_and_flags_by_revid(revid)
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/bzrplugins/hg/overlay.py", line 280, in _reconstruct_manifest_and_flags_by_revid
    parent_manifest = self.get_manifest_and_flags_by_revid(p)[0]
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/bzrplugins/hg/overlay.py", line 272, in get_manifest_and_flags_by_revid
    return self._reconstruct_manifest_and_flags_by_revid(revid)
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/bzrplugins/hg/overlay.py", line 280, in _reconstruct_manifest_and_flags_by_revid
    parent_manifest = self.get_manifest_and_flags_by_revid(p)[0]
...
    found = self._get_nodes(self._leaf_node_cache, node_indexes)
  File "/srv/importd.launchpad.net/production/launchpad-rev-14640/eggs/bzr-2.5.0dev2_r6152-py2.6-linux-i686.egg/bzrlib/btree_index.py", line 951, in _get_nodes
    found[idx] = cache[idx]
RuntimeError: maximum recursion depth exceeded
Import failed:
Traceback (most recent call last):
Failure: twisted.internet.error.ProcessTerminated: A process has ended with a probable error condition: process ended with exit code 1.

Revision history for this message
denis (denis-bilenko) wrote :
denis (denis-bilenko)
Changed in launchpad:
status: New → Incomplete
status: Incomplete → New
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.