Bug 949517 - [rfe] option for failing quickly on checksum mismatch
Summary: [rfe] option for failing quickly on checksum mismatch
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: librepo
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Mlcoch
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 922667
TreeView+ depends on / blocked
 
Reported: 2013-04-08 11:00 UTC by Ales Kozumplik
Modified: 2014-09-30 23:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-17 11:49:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ales Kozumplik 2013-04-08 11:00:38 UTC
Users want DNF to bail quickly when mismatching checkum on one of the mirrors is encountered for a metadata file, instead of trying all other mirrors. The reason is that some of them have the nasty experience of downloading gigabytes of data overnight, all with bad checksums, e.g. due to a buggy mirroring software or a buggy createrepo.

Please add an option to librepo that would facilitate this (the default should probably stay the same as now). Maybe it could be an integer setting an upper limit on the number of mirrors tried:

0 - try all mirrors there are
1 - only try the first mirror
n - try n first mirrors from the list

Comment 1 Tomas Mlcoch 2013-04-18 12:07:40 UTC
Hello,
new option LRO_MAXMIRRORTRIES has been added.
https://github.com/Tojaj/librepo/commit/0995859bbb997714a0512be979121e7823ca3de2
This option has exactly semantics as you wanted:

0 - try all mirrors there are - DEFAULT
1 - only try the first mirror
n - try n first mirrors from the list


Note You need to log in before you can comment on or make changes to this bug.