HDFS-10730. Fix some failed tests due to BindException. Contributed by Yiqun Lin
This commit is contained in:
parent
754cb4e30f
commit
f63cd78f60
|
@ -252,7 +252,7 @@ public class TestDecommissionWithStriped {
|
||||||
Thread.sleep(3000); // grace period to trigger decommissioning call
|
Thread.sleep(3000); // grace period to trigger decommissioning call
|
||||||
// start datanode so that decommissioning live node will be finished
|
// start datanode so that decommissioning live node will be finished
|
||||||
for (DataNodeProperties dnp : stoppedDns) {
|
for (DataNodeProperties dnp : stoppedDns) {
|
||||||
cluster.restartDataNode(dnp, true);
|
cluster.restartDataNode(dnp);
|
||||||
LOG.info("Restarts stopped datanode:{} to trigger block reconstruction",
|
LOG.info("Restarts stopped datanode:{} to trigger block reconstruction",
|
||||||
dnp.datanode);
|
dnp.datanode);
|
||||||
}
|
}
|
||||||
|
|
|
@ -479,7 +479,7 @@ public class TestFileChecksum {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dnIdxToDie != -1) {
|
if (dnIdxToDie != -1) {
|
||||||
cluster.restartDataNode(dnIdxToDie, true);
|
cluster.restartDataNode(dnIdxToDie);
|
||||||
}
|
}
|
||||||
|
|
||||||
return fc;
|
return fc;
|
||||||
|
|
Loading…
Reference in New Issue