bookkeeper
bookkeeper copied to clipboard
Fix diskWeightBasedPlacement not work correctly in RegionAware
Motivation
Currently diskWeightBasedPlacement do not work correctly in RegionAware.
The root is RegionAware contain multiple RackAwarePolicies of each region. when we getBookieInfo by restApi successfully and then updateBookieInfo, we do not update the bookieInfo in each region. So the RackAwarePolicy of each region actually maintain the error bookieInfo, result in the wrong bookie selection probability.
Changes
updateBookieInfo for each region in RegionAwarePolicy.