storj/satellite/repair
Márton Elek 9ddc8b4ca3 satellite/repair: piecescheck.OutOfPlacementPiecesSet should not contain offline nodes
When we check the availability of the pieces, we do:

```
result.NumUnhealthyRetrievable = len(result.ClumpedPiecesSet) + len(result.OutOfPlacementPiecesSet)
// + some magic if there are overlaps between them
numHealthy := len(pieces) - len(piecesCheck.MissingPiecesSet) - piecesCheck.NumUnhealthyRetrievable
```

This works only if OutOfPlacementPieceSet doesn't contain the offline nodes (which are already included in MissingPieceSet).

But `result.OutOfPlacementPieces.Set` should include all the nodes (even offline), as in case of lucky conditions, we are able to remove those pieces from DB.

The solution is to remove all offline nodes from `NumUnhealthyRetrievable`.

Change-Id: I90baa0396352dd040e1e1516314b3271f8712034
2023-08-16 17:35:10 +00:00
..
checker satellite/~placement: do not ignore placement check for placement=0 2023-08-16 07:06:56 +00:00
queue storage: move errors to better locations 2023-04-06 17:26:29 +03:00
repairer satellite/repair: piecescheck.OutOfPlacementPiecesSet should not contain offline nodes 2023-08-16 17:35:10 +00:00
clumping_test.go satellite/repair: repair pieces on the same last_net 2023-04-06 17:34:25 +00:00
clumping.go satellite/repair: repair pieces on the same last_net 2023-04-06 17:34:25 +00: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/overlay: refactor ReliabilityCache to keep more data 2023-07-05 11:19:10 +02:00
repair.go satellite/repair: move test files (#2649) 2019-07-28 12:15:34 +03:00