Stuck Loop needs to pick file based on stuck chunk weighting
PROGRAMMING TASK
Description of Task
The Stuck Loop needs to select the stuck file with the same stuck chunk weighting that it uses to select a directory.
Reason or Need for Change
The current design picks a directory randomly but weighted but the number of stuck chunks. Then it randomly picks a file but does not consider the number of stuck chunks in the random selection of the file.
Design / Proposal
The Stuck Loop currently reuses managedBuildChunkHeap
to read the files from a directory to then call managedBuildAndPushRandomChunk
where it randomly selects files to add a stuck chunk from. managedBuildAndPushRandomChunk
needs to be updated to randomly pick a file that is weighted but the number of stuck chunks.
Question: Once a file has been selected and a stuck chunk added, does that file get removed from the list of stuck files? EDIT: stuck chunks should be found from root each time.
Final design pending answer to above question.