MAPREDUCE-6036. TestJobEndNotifier fails intermittently in branch-2. Contributed by chang li
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1618691 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
55d7fecd09
commit
d51f81c3b6
|
@ -230,6 +230,9 @@ Release 2.6.0 - UNRELEASED
|
||||||
MAPREDUCE-6024. Shortened the time when Fetcher is stuck in retrying before
|
MAPREDUCE-6024. Shortened the time when Fetcher is stuck in retrying before
|
||||||
concluding the failure by configuration. (Yunjiong Zhao via zjshen)
|
concluding the failure by configuration. (Yunjiong Zhao via zjshen)
|
||||||
|
|
||||||
|
MAPREDUCE-6036. TestJobEndNotifier fails intermittently in branch-2 (chang
|
||||||
|
li via jlowe)
|
||||||
|
|
||||||
Release 2.5.0 - UNRELEASED
|
Release 2.5.0 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -270,7 +270,8 @@ public class TestJobEndNotifier extends JobEndNotifier {
|
||||||
app.waitForInternalState(job, JobStateInternal.REBOOT);
|
app.waitForInternalState(job, JobStateInternal.REBOOT);
|
||||||
// Now shutdown. User should see FAILED state.
|
// Now shutdown. User should see FAILED state.
|
||||||
// Unregistration fails: isLastAMRetry is recalculated, this is
|
// Unregistration fails: isLastAMRetry is recalculated, this is
|
||||||
app.shutDownJob();
|
///reboot will stop service internally, we don't need to shutdown twice
|
||||||
|
app.waitForServiceToStop(10000);
|
||||||
Assert.assertFalse(app.isLastAMRetry());
|
Assert.assertFalse(app.isLastAMRetry());
|
||||||
// Since it's not last retry, JobEndServlet didn't called
|
// Since it's not last retry, JobEndServlet didn't called
|
||||||
Assert.assertEquals(0, JobEndServlet.calledTimes);
|
Assert.assertEquals(0, JobEndServlet.calledTimes);
|
||||||
|
|
Loading…
Reference in New Issue