HDFS-9597. BaseReplicationPolicyTest should update data node stats after adding a data node. Contributed by Wei-Chiu Chuang.

This commit is contained in:
Benoy Antony 2015-12-25 08:55:39 -08:00
parent 2c17b81569
commit 8cfd672397
1 changed files with 2 additions and 0 deletions

View File

@ -98,6 +98,8 @@ abstract public class BaseReplicationPolicyTest {
cluster.add(dataNodes[i]); cluster.add(dataNodes[i]);
bm.getDatanodeManager().getHeartbeatManager().addDatanode( bm.getDatanodeManager().getHeartbeatManager().addDatanode(
dataNodes[i]); dataNodes[i]);
bm.getDatanodeManager().getHeartbeatManager().updateDnStat(
dataNodes[i]);
} }
updateHeartbeatWithUsage(); updateHeartbeatWithUsage();
} }