~ballot/ubuntu-repository-cache/rsync_before

Viewing all changes in revision 265.

  • Committer: mergebot at canonical
  • Author(s): "Haw Loeung"
  • Date: 2020-02-04 21:54:15 UTC
  • mfrom: (264.1.4 ubuntu-repository-cache)
  • Revision ID: mergebot@juju-139df4-prod-is-toolbox-0.canonical.com-20200204215415-4itwqnhvf18kvliz
Make metadata sync more resilient and retry

For Ubuntu Archive, it's fine because the sync host usually resolves
to more than one host/IP and therefore it goes through each but for
something like Ubuntu Ports, it's only a single host/IP. Instead,
let's retry up to 3 times before moving onto the next host.

Reviewed-on: https://code.launchpad.net/~hloeung/ubuntu-repository-cache/retry-for-each-host/+merge/378544
Reviewed-by: Paul Collins <paul.collins@canonical.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: