base checksum mismatch during apply_delta

Bug #380621 reported by Kevin Smith
This bug report is a duplicate of:  Bug #480102: assert len(tview) == tview_len. Edit Remove
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned
Bazaar Subversion Plugin
Triaged
Medium
Unassigned

Bug Description

We have a subversion repo with about 16000 revisions which appears to work fine both with svn and with an existing bzr-svn branch. I just tried to create a new bzr branch on a new machine (Ubuntu 9.04 Jaunty, using its standard bzr versions), and am getting this error:

bzr: ERROR: base checksum mismatch: 'dfd29a2e55275396552bcf7d083ba632' != '41b36ab118bfc4f0d574041d171c7c93'

This is a showstopper. I can't use bzr on this project until this is resolved. I will have to fall back to plain subversion.

My destination bzr repo (shared but empty) was originally a 1.9-rich-roots, but I also tried with 1.6.1-rich-roots and the result was the same. I can pull up to bzr -r 14579 but attempting to pull 14580 gives this error. There does not appear to be anything unusual about 14580, and I can do svn diff's of that changeset and a couple on either side of it. This leads me to believe it is not a problem with the svn repo being corrupted.

The svn repo in question is not publicly available, but I believe I could provide access to a bzr developer on a limited basis for debugging. I'm a ruby/java programmer so could fiddle with python under supervision, if necessary. This repo has minimal merging, so is mostly trunk with a few release branches. In other words, a simple flow.

Bazaar (bzr) 1.13.1
  Python interpreter: /usr/bin/python 2.6.2
  Python standard library: /usr/lib/python2.6
  bzrlib: /usr/lib/python2.6/dist-packages/bzrlib
  Bazaar configuration: /home/kevins/.bazaar
  Bazaar log file: /home/kevins/.bzr.log

Stack trace:
Tue 2009-05-26 10:13:05 -0400
0.047 bzr arguments: [u'pull', u'-v', u'-r', u'14580']
0.084 looking for plugins in /home/kevins/.bazaar/plugins
0.084 looking for plugins in /usr/lib/python2.6/dist-packages/bzrlib/plugins
0.271 encoding stdout as sys.stdout encoding 'UTF-8'
0.287 opening working tree '/var/local/bzr/project/trunk'
0.333 opening SVN RA connection to 'svn+ssh://example.com/svn/project/trunk'
1.992 bzr-svn: using Subversion 1.5.4 ()
15.629 Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 716, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 911, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 547, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 918, in run
    possible_transports=possible_transports)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree.py", line 1551, in pull
    possible_transports=possible_transports)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 2207, in pull
    _override_hook_target=_override_hook_target)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 2029, in pull
    graph=graph)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 725, in update_revisions
    overwrite, graph)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/branch.py", line 635, in update_revisions
    self.target.fetch(self.source, stop_revision)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 495, in fetch
    pb=nested_pb)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 1133, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 1251, in fetch
    self._fetch_revisions(needed, pb, use_replay=use_replay)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 1175, in _fetch_revisions
    parent_revmeta)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 1120, in _fetch_revision_switch
    report_inventory_contents(reporter, parent_revnum, start_empty)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/errors.py", line 127, in convert
    return unbound(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 906, in report_inventory_contents
    reporter.finish()
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 374, in apply_textdelta
    return self._apply_textdelta(base_checksum)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 562, in _apply_textdelta
    raise VersionedFileInvalidChecksum("base checksum mismatch: %r != %r" % (base_checksum, actual_checksum))
VersionedFileInvalidChecksum: base checksum mismatch: 'dfd29a2e55275396552bcf7d083ba632' != '41b36ab118bfc4f0d574041d171c7c93'

description: updated
Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 380621] [NEW] pull from svn repo gives: bzr: ERROR: base checksum mismatch:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

  affects bzr
  status invalid

  affects bzr-svn
  status incomplete

Which version of bzr-svn are you using ?

What sort of revision is the problematic revision? Was it pushed by
bzr-svn?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iJwEAQECAAYFAkocAL4ACgkQDLQl4QYPZuVV1AP+N1cWLJ+v5aWrvpOld28fghhS
3w2E72n4gbbhU8/JaInfHHqIixsN5SQc6waQonin1tlaeEve++zNrrYTZXT/653U
2lsBWLV+yYNIqscF/N0hxI7Ft+OYOVd1JlS3BRinNt4aAE29tuMprbEB4FTSxu72
wMQKtfBh/4ZVhBYoBb8=
=pBk2
-----END PGP SIGNATURE-----

Changed in bzr:
status: New → Invalid
Revision history for this message
Kevin Smith (ubuntu-qualitycode) wrote : Re: pull from svn repo gives: bzr: ERROR: base checksum mismatch:

As mentioned, I'm using whatever is current in 9.04/Jaunty. Took me a minute to find out how to find out what version of bzr-svn I have. Turns out that is: svn 0.5.3

Having pulled as much as possible into bzr, here is the log:

kevins@vanessa:/var/local/bzr/miradi/trunk$ bzr log -r -1 --show-ids
------------------------------------------------------------
revno: 14578
revision-id: <email address hidden>
parent: svn-v4:8c638476-0735-0410-8b6d-a206432d9109:trunk:15032
committer: kevins <email address hidden>
branch nick: trunk
timestamp: Tue 2009-04-28 14:59:59 -0400
message:
  Put expanded sub-columns to the left instead of to the right

When I look at svn, it claims that "Put expanded sub-columns to the left instead of to the right" was #15033.

Commits svn#15031 and svn#15032 were simple text modification commits performed by svn. Commits svn#15033 and svn#15034 were simple text modification commits performed by bzr-svn.

Kevin

Revision history for this message
Kevin Smith (ubuntu-qualitycode) wrote :

Changing status back to new since I added the requested information. Don't know if that's the right process or not, but I didn't want the report to get auto-closed due to incompleteness.

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

Yeah, that's the appropriate procedure - that way I can see easily which bug reports are waiting for information and which ones I can act on.

Please try again with the 0.6 branch of bzr-svn, I've added more information that should help debugging this problem.

Changed in bzr-svn:
status: New → Incomplete
Revision history for this message
Reuben Firmin (reubenf) wrote :

Hey Jelmer,

I have the same issue on the funky repository that I opened previous bugs about. I am on bzr-svn 0.6.1 but it doesn't seem to give much additional information.

Thanks

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

You need a development snapshot from bzr or 0.6.2, which has just been released.

Revision history for this message
Reuben Firmin (reubenf) wrote :

OK. FYI, this was the stacktrace on 0.6.1:

4291.840 Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 729, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 924, in run_bzr
    ret = run(*run_argv)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 560, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/builtins.py", line 1143, in run
    source_branch=br_from)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/remote.py", line 120, in sprout
    return super(SvnRemoteAccess, self).sprout(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/bzrdir.py", line 1178, in sprout
    result_repo.fetch(source_repository, fetch_spec=fetch_spec)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/repository.py", line 1545, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 1253, in fetch
    use_replay=self._use_replay)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 1184, in _fetch_revisions
    parent_revmeta)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 1129, in _fetch_revision_sw
itch
    report_inventory_contents(reporter, parent_revnum, start_empty)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/errors.py", line 129, in convert
    return unbound(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 900, in report_inventory_co
ntents
    reporter.finish()
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 357, in apply_textdelta
    return self._apply_textdelta(base_checksum)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 542, in _apply_textdelta
    raise VersionedFileInvalidChecksum("base checksum mismatch: %r != %r" % (base_checksum, actual_checksum))
VersionedFileInvalidChecksum: base checksum mismatch: '5f5e2c61bae2702c5c91cfcafe6774bf' != '10f7ee97e6374852
e83a4e83b5b0997c'

Revision history for this message
Reuben Firmin (reubenf) wrote :

Well, with 0.6.2dev, I get:

bzr: ERROR: exceptions.AttributeError: 'RevisionBuildEditor' object has no attribute 'branch_path'

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 729, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 924, in run_bzr
    ret = run(*run_argv)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 560, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/builtins.py", line 1143, in run
    source_branch=br_from)
  File "/root/.bazaar/plugins/svn/remote.py", line 120, in sprout
    return super(SvnRemoteAccess, self).sprout(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/bzrdir.py", line 1178, in sprout
    result_repo.fetch(source_repository, fetch_spec=fetch_spec)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/repository.py", line 1545, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/root/.bazaar/plugins/svn/fetch.py", line 1260, in fetch
    use_replay=self._use_replay)
  File "/root/.bazaar/plugins/svn/fetch.py", line 1191, in _fetch_revisions
    parent_revmeta)
  File "/root/.bazaar/plugins/svn/fetch.py", line 1136, in _fetch_revision_switch
    report_inventory_contents(reporter, parent_revnum, start_empty)
  File "/root/.bazaar/plugins/svn/errors.py", line 129, in convert
    return unbound(*args, **kwargs)
  File "/root/.bazaar/plugins/svn/fetch.py", line 903, in report_inventory_contents
    reporter.finish()
  File "/root/.bazaar/plugins/svn/fetch.py", line 358, in apply_textdelta
    return self._apply_textdelta(base_checksum)
  File "/root/.bazaar/plugins/svn/fetch.py", line 543, in _apply_textdelta
    raise VersionedFileInvalidChecksum("base checksum mismatch: %r != %r in %s (%s:%d)" % (base_checksum, actual_checksum, self.editor.revid, self.editor.branch_path, self.editor.revnum))
AttributeError: 'RevisionBuildEditor' object has no attribute 'branch_path'

bzr 1.15 on python 2.6.2 (linux2)
arguments: ['/usr/local/bin/bzr', 'branch', '-v', '/opt/svn/repositories/benetech.org/Bookshare/trunk']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  email /root/.bazaar/plugins/email [unknown]
  launchpad /usr/local/lib/python2.6/site-packages/bzrlib/plugins/launchpad [1.15]
  netrc_credential_store /usr/local/lib/python2.6/site-packages/bzrlib/plugins/netrc_credential_store [1.15]
  svn /root/.bazaar/plugins/svn [0.6.2dev]
*** 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
Jelmer Vernooij (jelmer) wrote :

Sorry about that; since I can't reproduce this problem I added an invalid assertion message. Should be fixed in the 0.6 branch now.

Revision history for this message
Reuben Firmin (reubenf) wrote :

Thanks, I will check. FYI the svn repo checks out ok using svnadmin verify.

Revision history for this message
Reuben Firmin (reubenf) wrote :

Same thing, unfortunately :(

Using repository layout: trunk0
bzr: ERROR: exceptions.AttributeError: 'RevisionBuildEditor' object has no attribute 'branch_path'

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 729, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 924, in run_bzr
    ret = run(*run_argv)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 560, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/root/.bazaar/plugins/svn/commands.py", line 177, in run
    to_revnum=to_revnum, prefix=prefix)
  File "/root/.bazaar/plugins/svn/convert.py", line 371, in convert_repository
    RepositoryConverter(*args, **kwargs)
  File "/root/.bazaar/plugins/svn/convert.py", line 248, in __init__
    revfinder, mapping, heads)
  File "/root/.bazaar/plugins/svn/convert.py", line 296, in _fetch_to_shared_repo
    inter.fetch(needed=revfinder.get_missing())
  File "/root/.bazaar/plugins/svn/fetch.py", line 1260, in fetch
    use_replay=self._use_replay)
  File "/root/.bazaar/plugins/svn/fetch.py", line 1191, in _fetch_revisions
    parent_revmeta)
  File "/root/.bazaar/plugins/svn/fetch.py", line 1136, in _fetch_revision_switch
    report_inventory_contents(reporter, parent_revnum, start_empty)
  File "/root/.bazaar/plugins/svn/errors.py", line 129, in convert
    return unbound(*args, **kwargs)
  File "/root/.bazaar/plugins/svn/fetch.py", line 903, in report_inventory_contents
    reporter.finish()
  File "/root/.bazaar/plugins/svn/fetch.py", line 358, in apply_textdelta
    return self._apply_textdelta(base_checksum)
  File "/root/.bazaar/plugins/svn/fetch.py", line 543, in _apply_textdelta
    raise VersionedFileInvalidChecksum("base checksum mismatch: %r != %r in %s (%s:%d)" % (base_checksum, actual_checksum, self.editor.revid, self.editor.branch_path, self.editor.revnum))
AttributeError: 'RevisionBuildEditor' object has no attribute 'branch_path'

bzr 1.15 on python 2.6.2 (linux2)
arguments: ['/usr/local/bin/bzr', 'svn-import', '/opt/svn/repositories/benetech.org/Bookshare/']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  email /root/.bazaar/plugins/email [unknown]
  launchpad /usr/local/lib/python2.6/site-packages/bzrlib/plugins/launchpad [1.15]
  netrc_credential_store /usr/local/lib/python2.6/site-packages/bzrlib/plugins/netrc_credential_store [1.15]
  svn /root/.bazaar/plugins/svn [0.6.3dev]
*** 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
Reuben Firmin (reubenf) wrote :

If you're willing to NDA I can give you a dump of the repository. Let me know what I can do to help you debug otherwise.

Thanks

Revision history for this message
Reuben Firmin (reubenf) wrote :

Hi, same thing with the branch you pointed me at over IRC:

[root@benetech04 ~]# bzr svn-import /opt/svn/repositories/benetech.org/Bookshare/
Using repository layout: trunk0
bzr: ERROR: exceptions.AttributeError: 'RevisionBuildEditor' object has no attribute 'branch_path'

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 729, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 924, in run_bzr
    ret = run(*run_argv)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 560, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/root/.bazaar/plugins/svn/commands.py", line 177, in run
    to_revnum=to_revnum, prefix=prefix)
  File "/root/.bazaar/plugins/svn/convert.py", line 371, in convert_repository
    RepositoryConverter(*args, **kwargs)
  File "/root/.bazaar/plugins/svn/convert.py", line 248, in __init__
    revfinder, mapping, heads)
  File "/root/.bazaar/plugins/svn/convert.py", line 296, in _fetch_to_shared_repo
    inter.fetch(needed=revfinder.get_missing())
  File "/root/.bazaar/plugins/svn/fetch.py", line 1260, in fetch
    use_replay=self._use_replay)
  File "/root/.bazaar/plugins/svn/fetch.py", line 1191, in _fetch_revisions
    parent_revmeta)
  File "/root/.bazaar/plugins/svn/fetch.py", line 1136, in _fetch_revision_switch
    report_inventory_contents(reporter, parent_revnum, start_empty)
  File "/root/.bazaar/plugins/svn/errors.py", line 129, in convert
    return unbound(*args, **kwargs)
  File "/root/.bazaar/plugins/svn/fetch.py", line 903, in report_inventory_contents
    reporter.finish()
  File "/root/.bazaar/plugins/svn/fetch.py", line 358, in apply_textdelta
    return self._apply_textdelta(base_checksum)
  File "/root/.bazaar/plugins/svn/fetch.py", line 543, in _apply_textdelta
    raise VersionedFileInvalidChecksum("base checksum mismatch: %r != %r in %s (%s:%d)" % (base_checksum, actual_checksum, self.editor.revid, self.editor.branch_path, self.editor.revnum))
AttributeError: 'RevisionBuildEditor' object has no attribute 'branch_path'

bzr 1.15 on python 2.6.2 (linux2)
arguments: ['/usr/local/bin/bzr', 'svn-import', '/opt/svn/repositories/benetech.org/Bookshare/']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  email /root/.bazaar/plugins/email [unknown]
  launchpad /usr/local/lib/python2.6/site-packages/bzrlib/plugins/launchpad [1.15]
  netrc_credential_store /usr/local/lib/python2.6/site-packages/bzrlib/plugins/netrc_credential_store [1.15]
  svn /root/.bazaar/plugins/svn [0.6.3dev]
*** 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
Reuben Firmin (reubenf) wrote :

I hacked on your code a little and added some print statements before the raise:

        if base_checksum is not None and base_checksum != actual_checksum:
            print base_checksum
            print actual_checksum
            print self.editor.revid
            #print self.editor.branch_path
            #print self.editor.revnum

It turns out that self.editor doesn't have either branch_path or revnum. Are there other properties of self.editor that would be useful in filtering this erroneous checkin out?

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

Hi Reuben

You need self.editor.revmeta.branch_path, self.editor.revmeta.revnum

That's the change I had intended to make in the 0.6 branch.

Cheers,

Jelmer

Revision history for this message
Reuben Firmin (reubenf) wrote :
Download full text (8.0 KiB)

OK, interesting. I dumped the entire self.editor.revmeta object. It looks like he was using bzr-svn to check into the svn repository. Here's the content...nothing too proprietary:

 {'_estimated_fileprop_ancestors': {}, '_revid_cache': <bzrlib.plugins.svn.cache.sqlitecache.RevisionIdMapCache object at 0x147a0190>, '_parents_cache': <bzrlib.plugins.svn.cache.sqlitecache.ParentsCache object at 0x147a0290>, '_fileprops': {'svn:mergeinfo': '/branches/product-development:4837-5096,5632,5650,5667,5669,5695,5701-5704,5706,5714,5721,5730,5740-5741,5742,5744,5747,5749,5752,5757-5758,5760,5766-5767\n', 'svn:ignore': 'target\n', 'svn:entry:committed-rev': '5869', 'svn:entry:last-author': 'peterc', 'svn:entry:uuid': '13cce0d3-8e6b-44ce-8dc0-d6332f4951be', 'svn:entry:committed-date': '2009-03-24T02:25:44.517165Z'}, '_original_mapping': <bzrlib.plugins.svn.mapping4.BzrSvnMappingv4 object at 0x2aaaaed9fe50>, '_original_mapping_set': True, '_revinfo_cache': <bzrlib.plugins.svn.cache.sqlitecache.RevisionInfoCache object at 0x147a0310>, '_revprops': {'bzr:revision-id': 'peterc-20090324022532-o3kx3nek4dn5qnie', 'bzr:user-agent': 'bzr1.14dev+bzr-svn0.5.3', 'bzr:text-parents': 'bookshare-document/src/main/java/org/bookshare/document/quality/QualityAnalysis.java\tsvn-v4:13cce0d3-8e6b-44ce-8dc0-d6332f4951be:branches/pd2:5621\nbookshare-document/src/main/java/org/bookshare/document/quality/QualityAnalysisImpl.java\tsvn-v4:13cce0d3-8e6b-44ce-8dc0-d6332f4951be:branches/pd2:5621\nbookshare-document/src/main/java/org/bookshare/document/quality/rules/QualityAnalysisScorer.java\tsvn-v4:13cce0d3-8e6b-44ce-8dc0-d6332f4951be:branches/pd2:5621\nbookshare-document/src/main/java/org/bookshare/document/quality/rules/QualityAnalysisScorerImpl.java\tpeterc-20090313051924-jeox2asb77lqo6jc\nbookshare-document/src/main/java/org/bookshare/document/quality/rules/Rule.java\tsvn-v4:13cce0d3-8e6b-44ce-8dc0-d6332f4951be:branches/product-development:5695\nbookshare-service/src/main/java/org/bookshare/service/BookManagementServiceImpl.java\tsvn-v4:13cce0d3-8e6b-44ce-8dc0-d6332f4951be:trunk:5796\nbookshare-service/src/main/java/org/bookshare/service/quality/QualityAnalyzer.java\tsvn-v4:13cce0d3-8e6b-44ce-8dc0-d6332f4951be:branches/product-development:5721\nbookshare-service/src/main/java/org/bookshare/service/quality/QualityAnalyzerImpl.java\tpeterc-20090313051924-jeox2asb77lqo6jc\nbookshare-service/src/main/java/org/bookshare/service/task/ReprocessCollectionTask.java\tsvn-v4:13cce0d3-8e6b-44ce-8dc0-d6332f4951be:trunk:5811\nbookshare-standalone/src/main/java/org/bookshare/apps/datamover/SimulateVolunteerFlow.java\tsvn-v4:13cce0d3-8e6b-44ce-8dc0-d6332f4951be:branches/product-development:5721\n', 'bzr:base-revision': 'svn-v4:13cce0d3-8e6b-44ce-8dc0-d6332f4951be:trunk:5868', 'bzr:root': 'trunk', 'bzr:committer': 'peterc', 'svn:original-date': '2009-03-24T02:25:32.728000Z', 'svn:date': '2009-03-24T02:25:44.517165Z', 'svn:log': 'BKS-9246 Tightening up type casts on rule analysis results.', 'bzr:revprop:branch-nick': 'trunk', 'bzr:repository-uuid': '13cce0d3-8e6b-44ce-8dc0-d6332f4951be', 'bzr:file-ids': 'bookshare-document/src/main/java/org/bookshare/document/quality/QualityAnalysis.java\t2566@13cc...

Read more...

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

Thanks, looks like the text parents aren't recorded properly. We could try to use the proper text parents in this case and just warn.

Changed in bzr-svn:
importance: Undecided → Medium
status: Incomplete → Triaged
Revision history for this message
Reuben Firmin (reubenf) wrote :

This is blocking our migration, which is at this point urgent... any chance you can give me a workaround for the code?

Revision history for this message
Reuben Firmin (reubenf) wrote :

Less urgent now. Working around via bzr-git works just fine.

Thanks

Jelmer Vernooij (jelmer)
summary: - pull from svn repo gives: bzr: ERROR: base checksum mismatch:
+ Should not blindly trust per-file ancestry stored in bzr-svn metadata
Revision history for this message
Kevin Smith (ubuntu-qualitycode) wrote : Re: Should not blindly trust per-file ancestry stored in bzr-svn metadata

Running bzr 2.0.0 with bzr-svn 1.0.0, pull now seems to work for me on the repo referenced above, but svn-import fails (I never tried svn-import before). It seems like lp:336467 which is marked fixed really isn't, and this bug which is not marked fixed somehow is fixed?

kevins@vanessa:~/work/miradi/bzr2/imported$ bzr svn-import svn+ssh://subversion.benetech.org/opt/svn/repositories/benetech.org/Miradi
Using repository layout: trunk0
bzr: ERROR: base checksum mismatch: 'dfd29a2e55275396552bcf7d083ba632' != '41b36ab118bfc4f0d574041d171c7c93' in <email address hidden> (trunk:15034)

Since pull works, this bug is no longer a showstopper for me either. Although Reuben and I are in the same organization, he was able to convert his repo to native bzr bug my repo is stuck in svn. So this one remained a showstopper for me after it was no longer a showstopper for him.

Revision history for this message
Kevin Smith (ubuntu-qualitycode) wrote :

Sorry. I spoke too soon. While I can pull, I can't branch without hitting the error. Don't I need to have a branch in order to be able to commit back to the svn repo correctly?

kevins@vanessa:~/work/miradi/bzr2/ssh$ bzr branch svn+ssh://subversion.benetech.org/opt/svn/repositories/benetech.org/Miradi/trunk
bzr: ERROR: base checksum mismatch: 'dfd29a2e55275396552bcf7d083ba632' != '41b36ab118bfc4f0d574041d171c7c93' in <email address hidden> (trunk:15034)

This is a showstopper for our project to move to bzr.

Revision history for this message
Vitali Sokhin (vitalius) wrote :

I get the similar error with bzr 2.1.0

vitali@lnx-vitali bzr-test]$ bzr branch ../svn-co
bzr: ERROR: checksum mismatch: '41e7f13c8f35b89aa8d9ad0f8319e613' != 'd41d8cd98f00b204e9800998ecf8427e' in trunk:205

Running the following:

bzr 2.1.0 on python 2.5.1 (Linux-2.6.18-92.el5-i686-with-redhat-5.2-Tikanga)
arguments: ['/usr/bin/bzr', 'info']
encoding: 'ISO-8859-1', fsenc: 'ISO-8859-1', lang: 'en_US'
plugins:
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [2.1.0]
  netrc_credential_store /usr/lib/python2.5/site-packages/bzrlib/plugins/netrc_credential_store [2.1.0]
  news_merge /usr/lib/python2.5/site-packages/bzrlib/plugins/news_merge [2.1.0]
  svn /afs/haifa/home/vitali/.bazaar/plugins/svn [1.0.2]

Can you please suggest how to solve/work around the issue?

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

Vitali, is your repository public ?

Jelmer Vernooij (jelmer)
summary: - Should not blindly trust per-file ancestry stored in bzr-svn metadata
+ base checksum mismatch during apply_delta
Revision history for this message
Kevin Smith (ubuntu-qualitycode) wrote :

The svn repository for my project which is experiencing this problem is not publicly accessible, but the code can be shared. So we will deliver a copy to Jelmer for analysis.

Revision history for this message
Tres Seaver (tseaver) wrote :

I have an SVN repository which is read-only public, and where
 'bzr svn-import --incremental' triggered this error.

  http://svn.repoze.org/

The offending revision is #8902:

  $ bzr svn-import file:///home/repoze/svn .
  Using repository layout: trunk1
  Upgrade to svn 1.5 or higher for faster retrieving of revision properties.
  bzr: ERROR: checksum mismatch: '515a60d2c63e3811c0a5f63ab85a08b6' != '02d828258de59f7aada1002caeccb6fa' in repoze.bfg/branches/1.2:8902

I am trying to work around the problem now by blowing away the mirrored repo and
re-importing from scratch.

Revision history for this message
Tres Seaver (tseaver) wrote :

Re-importing from scratch worked around the problem for me.

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 380621] Re: base checksum mismatch during apply_delta

On Fri, 2010-04-09 at 16:06 +0000, Tres Seaver wrote:
> I have an SVN repository which is read-only public, and where
> 'bzr svn-import --incremental' triggered this error.
>
> http://svn.repoze.org/
>
> The offending revision is #8902:
>
> $ bzr svn-import file:///home/repoze/svn .
> Using repository layout: trunk1
> Upgrade to svn 1.5 or higher for faster retrieving of revision properties.
> bzr: ERROR: checksum mismatch: '515a60d2c63e3811c0a5f63ab85a08b6' != '02d828258de59f7aada1002caeccb6fa' in repoze.bfg/branches/1.2:8902
>
> I am trying to work around the problem now by blowing away the mirrored repo and
> re-importing from scratch.
Thanks Tres, I can reproduce this. I think I have some ideas on what
might be going wrong, trying to debug now.

Cheers,

Jelmer

Revision history for this message
Philip Peitsch (philip-peitsch) wrote :

Hi Jelmer,

Just wondering if there is an ETA on when this issue might be fixed? This is currently blocking me being able to properly flee to bzr from svn :)

Thanks for all the good work you do!

Revision history for this message
Philip Peitsch (philip-peitsch) wrote :

Just found out how easy it is to dump the svn revisionprops... would it be at all helpful in resolving this if I was able to give you access to these logs (I might need to anonymize the data a bit but leave the bzr stuff unchanged). This problem has indeed only started happening after using bzr-svn clients to the bzr repo

It's quite neat how you store the revision stuff :)

Revision history for this message
Lalo Martins (lalo.martins) wrote :

updated to 1.0.4 from bzr-beta-ppa, this still happens. Then updated to latest tip of lp:bzr-svn and this still happens. :-(

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.