Correct the calculation of worker diskInfo actualUsableSpace.
Make the expression of the function to get the reserve size clearer. (getMinimumUsableSize -> getActualReserveSize).
Let deviceMonitor startCheck after the first storageManager.updateDiskInfos() to avoid disks from being misidentified as HIGH_DISK_USAGE.
Fix PushDataHandler#checkDiskFull judge.
What changes were proposed in this pull request?
Correct the calculation of worker diskInfo actualUsableSpace. Make the expression of the function to get the reserve size clearer. (
getMinimumUsableSize
->getActualReserveSize
). Let deviceMonitor startCheck after the firststorageManager.updateDiskInfos()
to avoid disks from being misidentified as HIGH_DISK_USAGE. Fix PushDataHandler#checkDiskFull judge.Why are the changes needed?
Make sure worker disk reserve work correctly.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Cluster test and UT.