[MERGE][bug #153786] KnitVersionedFiles retry when appropriate

John Arbash Meinel john at arbash-meinel.com
Mon Oct 27 19:04:33 GMT 2008


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

This is probably patch 2/3 for the retry code that I'm working on.

This gets the KVF interface to retry whenever the index and pack files
get 'skewed'. (We find something in the index, but when we go to read it
in a pack file it has disappeared.)

Some of this is a bit over-broad, but I was more concerned about it
working, and trying to do less is difficult. (We *could* try to figure
out exactly which records are invalid, and then only retry those rather
than everything, but as this is only fallback code, I'm not specifically
concerned about it yet.)

The last patch in this series will be to update the Packer code (which
is what is used when fetching between pack repositories). That code is a
bit harder to fix, because you are dealing with 2 repositories. The easy
fix is to just abandon the current new pack file, and restart the whole
fetch over again. I was hoping to do better than that and only refetch
the data at the current level (so if we retry after downloading
revisions and inventories then we only restart to download the text
contents.) I'll see how hard it is, and how appropriate it is. (When
doing 'autopack' for example, you want to start all over again because
you may not need to do anything.)

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkGEJ4ACgkQJdeBCYSNAAOc2ACcC+1NSrLq5b8Owm6qqRw15Ues
8OsAoIdBU+qkKi1N2c5g2TKjNi/nWJ9U
=jesG
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pack_retry_153786-2.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20081027/b36298ba/attachment-0001.diff 


More information about the bazaar mailing list