Follow-up from "Repair by directory"
The following discussion from !3386 (merged) should be addressed:
-
@ChrisSchinnerl started a discussion: (+1 comment) Do we want to have searching for the worst health directory and building the chunk heap in the same thread? I feel like it would make more sense to have one thread push stuff into the heap while the other empties the heap.
We also might want some control over how the size of the heap. e.g. if the folder we want to repair has a single file, we should push new files into the heap asap. If the folder is huge we might only want to partially push it in the heap.
TODO
-
Add map of siapaths to health in directory metadata -
Only add files that need to be repaired to the repair heap