MAPREDUCE-6492. AsyncDispatcher exit with NPE on TaskAttemptImpl#sendJHStartEventForAssignedFailTask. Contributed by Bibin A Chundatt
(cherry picked from commit ab11085b81353e1617875deb10f3c8e2a8b91a1e)
This commit is contained in:
parent
6e7c76a5bd
commit
fc10c99839
@ -41,6 +41,10 @@ Release 2.7.2 - UNRELEASED
|
||||
MAPREDUCE-5982. Task attempts that fail from the ASSIGNED state can
|
||||
disappear (Chang Li via jlowe)
|
||||
|
||||
MAPREDUCE-6492. AsyncDispatcher exit with NPE on
|
||||
TaskAttemptImpl#sendJHStartEventForAssignedFailTask (Bibin A Chundatt via
|
||||
jlowe)
|
||||
|
||||
Release 2.7.1 - 2015-07-06
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -1380,7 +1380,9 @@ private static JobCounterUpdateEvent createJobCounterUpdateEventTAKilled(
|
||||
|
||||
private static void
|
||||
sendJHStartEventForAssignedFailTask(TaskAttemptImpl taskAttempt) {
|
||||
TaskAttemptContainerLaunchedEvent event;
|
||||
if (null == taskAttempt.container) {
|
||||
return;
|
||||
}
|
||||
taskAttempt.launchTime = taskAttempt.clock.getTime();
|
||||
|
||||
InetSocketAddress nodeHttpInetAddr =
|
||||
|
@ -753,6 +753,14 @@ public void testAppDiognosticEventOnUnassignedTask() throws Exception {
|
||||
assertFalse(
|
||||
"InternalError occurred trying to handle TA_DIAGNOSTICS_UPDATE on assigned task",
|
||||
eventHandler.internalError);
|
||||
try {
|
||||
taImpl.handle(new TaskAttemptEvent(attemptId,
|
||||
TaskAttemptEventType.TA_KILL));
|
||||
Assert.assertTrue("No exception on UNASSIGNED STATE KILL event", true);
|
||||
} catch (Exception e) {
|
||||
Assert.assertFalse(
|
||||
"Exception not expected for UNASSIGNED STATE KILL event", true);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
x
Reference in New Issue
Block a user