Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
//Balancer.java /* Return true if the given datanode is overUtilized */ private boolean isOverUtilized(BalancerDatanode datanode) { return datanode.utilization > (avgUtilization+threshold); } /* Return true if the given datanode is above average utilized * but not overUtilized */ private boolean isAboveAvgUtilized(BalancerDatanode datanode) { return (datanode.utilization <= (avgUtilization+threshold)) && (datanode.utilization > avgUtilization); } /* Return true if the given datanode is underUtilized */ private boolean isUnderUtilized(BalancerDatanode datanode) { return datanode.utilization < (avgUtilization-threshold); } /* Return true if the given datanode is below average utilized * but not underUtilized */ private boolean isBelowAvgUtilized(BalancerDatanode datanode) { return (datanode.utilization >= (avgUtilization-threshold)) && (datanode.utilization < avgUtilization); }
Where is datanode.utilization == avgUtilization?