HDFS-9597. BaseReplicationPolicyTest should update data node stats after adding a data node. Contributed by Wei-Chiu Chuang.
(cherry picked from commit 8cfd672397
)
This commit is contained in:
parent
8baf9369bb
commit
42160d358a
|
@ -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