HDFS-9597. BaseReplicationPolicyTest should update data node stats after adding a data node. Contributed by Wei-Chiu Chuang.
This commit is contained in:
parent
2c17b81569
commit
8cfd672397
|
@ -98,6 +98,8 @@ abstract public class BaseReplicationPolicyTest {
|
|||
cluster.add(dataNodes[i]);
|
||||
bm.getDatanodeManager().getHeartbeatManager().addDatanode(
|
||||
dataNodes[i]);
|
||||
bm.getDatanodeManager().getHeartbeatManager().updateDnStat(
|
||||
dataNodes[i]);
|
||||
}
|
||||
updateHeartbeatWithUsage();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue