Resolve "Stuck Loop needs to pick file based on stuck chunk weighting"
MERGE REQUEST
Overview
This MR aims to select a stuck file with the same stuck chunk based randomness as stuck directories are selected.
Changes to Work Flow
Originally we would select a stuck file randomly based on the number of stuck files in a directory. Now we consider the number of stuck chunks in each file as we randomly select a stuck file.
Testing Changes
Unit test added TestRandomStuckFile
Documentation Changes
Renter README is currently in progress and contains information on how the stuck loop selects chunks. Code comments and docstrings have been updated.
Modules and Packages Impacted
modules/renter
Example for Visual changes (ie Screenshot)
N/A
Issues Closed
Closes #3559 (closed)
Checklist
Review and complete the checklist to ensure that the MR is complete before assigned to an approver.
-
Pipeline PassingN/A not fixing an NDF -
All new methods, or updating methods have clear docstrings -
Testing added or updated for new methods -
API documentation updated for API updatesN/A not impacting API -
Module README.md updated for changes to work flow
Edited by Christopher Schinnerl