YARN-8438. TestContainer.testKillOnNew flaky on trunk. Contributed by Szilard Nemeth.
This commit is contained in:
parent
7a3c6e9c3c
commit
35ec9401e8
|
@ -591,9 +591,8 @@ public class TestContainer {
|
||||||
Assert.assertEquals(ContainerExitStatus.KILLED_BY_RESOURCEMANAGER,
|
Assert.assertEquals(ContainerExitStatus.KILLED_BY_RESOURCEMANAGER,
|
||||||
containerMetrics.exitCode.value());
|
containerMetrics.exitCode.value());
|
||||||
Assert.assertTrue(containerMetrics.startTime.value() > 0);
|
Assert.assertTrue(containerMetrics.startTime.value() > 0);
|
||||||
Assert.assertTrue(
|
Assert.assertTrue(containerMetrics.finishTime.value() >=
|
||||||
containerMetrics.finishTime.value() > containerMetrics.startTime
|
containerMetrics.startTime.value());
|
||||||
.value());
|
|
||||||
Assert.assertEquals(ContainerEventType.KILL_CONTAINER,
|
Assert.assertEquals(ContainerEventType.KILL_CONTAINER,
|
||||||
wc.initStateToEvent.get(ContainerState.NEW));
|
wc.initStateToEvent.get(ContainerState.NEW));
|
||||||
Assert.assertEquals(ContainerState.DONE,
|
Assert.assertEquals(ContainerState.DONE,
|
||||||
|
@ -1612,4 +1611,5 @@ public class TestContainer {
|
||||||
return ((ContainerImpl)c).getRetryPolicy();
|
return ((ContainerImpl)c).getRetryPolicy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue