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

View File

@ -98,6 +98,8 @@ public void setupCluster() throws Exception {
cluster.add(dataNodes[i]);
bm.getDatanodeManager().getHeartbeatManager().addDatanode(
dataNodes[i]);
bm.getDatanodeManager().getHeartbeatManager().updateDnStat(
dataNodes[i]);
}
updateHeartbeatWithUsage();
}