HDFS-6364: Merging r1601771 from trunk to branch-2.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1601772 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
71028526c1
commit
705c23e718
|
@ -342,6 +342,9 @@ Release 2.5.0 - UNRELEASED
|
|||
HDFS-6257. TestCacheDirectives#testExceedsCapacity fails occasionally
|
||||
(cmccabe)
|
||||
|
||||
HDFS-6364. Incorrect check for unknown datanode in Balancer. (Benoy
|
||||
Antony via Arpit Agarwal)
|
||||
|
||||
Release 2.4.1 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -696,7 +696,7 @@ public class Balancer {
|
|||
// update locations
|
||||
for (String datanodeUuid : blk.getDatanodeUuids()) {
|
||||
final BalancerDatanode d = datanodeMap.get(datanodeUuid);
|
||||
if (datanode != null) { // not an unknown datanode
|
||||
if (d != null) { // not an unknown datanode
|
||||
block.addLocation(d);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue