HDFS-2491. TestBalancer can fail when datanode utilization and avgUtilization is exactly same. Contributed by Uma Maheswara Rao G.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1187837 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
977d7cc5b9
commit
7dd869c2a9
|
@ -1762,6 +1762,9 @@ Release 0.22.0 - Unreleased
|
|||
HDFS-2012. Balancer incorrectly treats nodes whose utilization equals
|
||||
avgUtilization. (Uma Maheswara Rao G via shv)
|
||||
|
||||
HDFS-2491. TestBalancer can fail when datanode utilization and
|
||||
avgUtilization is exactly same. (Uma Maheswara Rao G via shv)
|
||||
|
||||
Release 0.21.1 - Unreleased
|
||||
|
||||
HDFS-1466. TestFcHdfsSymlink relies on /tmp/test not existing. (eli)
|
||||
|
|
|
@ -823,7 +823,7 @@ public class Balancer {
|
|||
cluster.add(datanode);
|
||||
BalancerDatanode datanodeS;
|
||||
final double avg = policy.getAvgUtilization();
|
||||
if (policy.getUtilization(datanode) > avg) {
|
||||
if (policy.getUtilization(datanode) >= avg) {
|
||||
datanodeS = new Source(datanode, policy, threshold);
|
||||
if (isAboveAvgUtilized(datanodeS)) {
|
||||
this.aboveAvgUtilizedDatanodes.add((Source)datanodeS);
|
||||
|
|
Loading…
Reference in New Issue