Can’t find the answer to my question, so I thought about asking it here:
How does the repair functionality actually work? I get that if the pieces fall below a threshold, a repair task is initiated. But what actually happens when repairing?
A) Enough pieces to rebuild the segment are pulled from nodes, the segment is rebuilt and the newly created pieces (those above the threshold) are sent to new nodes. The nodes providing the pieces to rebuild the segment keep their pieces.
B) Enough pieces are pulled, the segment is rebuilt, all rebuilt pieces are sent to new nodes. The older nodes (that provided pieces for the rebuild) lose their pieces (garbage collected?).