Homec4science

If repository mirroring fails, keep trying the other mirrors

Authored by epriestley <git@epriestley.com> on Jan 25 2014, 23:02.

Description

If repository mirroring fails, keep trying the other mirrors

Summary: Ref T4338. Currently, if you have several mirrors and the first one fails, we won't try the other mirrors (since we'll throw and that will take us out of the mirroring process). Instead, try each mirror even if one fails, and then throw an AggregateException with all the failures.

Test Plan:

  • Ran bin/repository mirror normally.
  • Faked an exception, ran again, got the AggregateException I expected.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T4338

Differential Revision: https://secure.phabricator.com/D8067

Details

Committed
epriestley <git@epriestley.com>Jan 25 2014, 23:02
Pushed
aubortJan 31 2017, 17:16
Parents
rPHdd944f7d833b: Separate repository mirroring into an Engine and provide `bin/repository mirror`
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH31e11a97d2c5: If repository mirroring fails, keep trying the other mirrors (authored by epriestley <git@epriestley.com>).Jan 25 2014, 23:02