storj/satellite/repair/repairer
paul cannon 2b59640f18 cmd/satellite: ignore Canceled in exit from repair worker
Firstly, this changes the repair functionality to return Canceled errors
when a repair is canceled during the Get phase. Previously, because we
do not track individual errors per piece, this would just show up as a
failure to download enough pieces to repair the segment, which would
cause the segment to be added to the IrreparableDB, which is entirely
unhelpful.

Then, ignore Canceled errors in the return value of the repair worker.
Apparently, when the worker returns an error, that makes Cobra exit the
program with a nonzero exit code, which causes some piece of our
deployment automation to freak out and page people. And when we ask the
repair worker to shut down, "canceled" errors are what we _expect_, not
an error case.

Change-Id: Ia3eb1c60a8d6ec5d09e7cef55dea523be28e8435
2020-11-17 21:37:59 +00:00
..
ec.go all: use keyed special comment 2020-10-13 15:13:41 +03:00
repairer.go satellite/internalpb: add inspectors 2020-10-30 13:28:17 +02:00
segments.go cmd/satellite: ignore Canceled in exit from repair worker 2020-11-17 21:37:59 +00:00