HDFS-15677. TestRouterRpcMultiDestination#testGetCachedDatanodeReport fails on trunk. (#2503)

This commit is contained in:
Masatake Iwasaki 2020-12-01 08:06:52 +09:00 committed by GitHub
parent 44910b53f3
commit 6a1d7d9ed2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -233,9 +233,13 @@ public class TestRouterRpc {
// We decrease the DN heartbeat expire interval to make them dead faster
cluster.getCluster().getNamesystem(0).getBlockManager()
.getDatanodeManager().setHeartbeatExpireInterval(5000);
.getDatanodeManager().setHeartbeatInterval(1);
cluster.getCluster().getNamesystem(1).getBlockManager()
.getDatanodeManager().setHeartbeatExpireInterval(5000);
.getDatanodeManager().setHeartbeatInterval(1);
cluster.getCluster().getNamesystem(0).getBlockManager()
.getDatanodeManager().setHeartbeatExpireInterval(3000);
cluster.getCluster().getNamesystem(1).getBlockManager()
.getDatanodeManager().setHeartbeatExpireInterval(3000);
}
@AfterClass
@ -1859,7 +1863,7 @@ public class TestRouterRpc {
}
return datanodeReport.length == dn.length;
}
}, 500, 5 * 1000);
}, 100, 10 * 1000);
// The cache should be updated now
final DatanodeInfo[] datanodeReport3 =