storj/satellite/repair
paul cannon 20bcdeb8b1 satellite/repair: fix flaky test TestECREpairerGetOffline
It was possible to get into a situation where successfulPieces =
es.RequiredCount(), errorCount < minFailures, and inProgress == 0 (when
the succeeding gets all completed before the failures), whereupon the
last goroutine in the limiter would sit and wait forever for another
goroutine to finish.

This change corrects the handling of that situation.

As an aside, this is really pretty confusing code and we should think
about redoing the whole function.

Change-Id: Ifa3d3ad92bc755e563fd06b2aa01ef6147075a69
2023-02-24 09:05:21 -06:00
..
checker satellite/metabase/rangedloop: few additions for monitoring 2023-02-17 08:46:00 +00:00
queue all: fix math/rand deprecations 2023-02-17 15:05:54 +02:00
repairer satellite/repair: fix flaky test TestECREpairerGetOffline 2023-02-24 09:05:21 -06:00
priority_test.go satellite/repair: test inmemory/disk difference only once 2022-03-29 14:08:13 +03:00
priority.go all: reformat comments as required by gofmt 1.19 2022-08-10 18:24:55 +00:00
repair_test.go satellite/repair: fix flakiness in tests 2023-02-16 07:33:47 +00:00
repair.go satellite/repair: move test files (#2649) 2019-07-28 12:15:34 +03:00