MAPREDUCE-7064. Flaky test TestTaskAttempt#testReducerCustomResourceTypes. Contributed by Peter Bacsko
This commit is contained in:
parent
f83716b7f2
commit
2626ec35e9
@ -187,77 +187,103 @@ public void tearDown() {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testMRAppHistoryForMap() throws Exception {
|
public void testMRAppHistoryForMap() throws Exception {
|
||||||
MRApp app = new FailingAttemptsMRApp(1, 0);
|
MRApp app = null;
|
||||||
testMRAppHistory(app);
|
try {
|
||||||
|
app = new FailingAttemptsMRApp(1, 0);
|
||||||
|
testMRAppHistory(app);
|
||||||
|
} finally {
|
||||||
|
app.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testMRAppHistoryForReduce() throws Exception {
|
public void testMRAppHistoryForReduce() throws Exception {
|
||||||
MRApp app = new FailingAttemptsMRApp(0, 1);
|
MRApp app = null;
|
||||||
testMRAppHistory(app);
|
try {
|
||||||
|
app = new FailingAttemptsMRApp(0, 1);
|
||||||
|
testMRAppHistory(app);
|
||||||
|
} finally {
|
||||||
|
app.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testMRAppHistoryForTAFailedInAssigned() throws Exception {
|
public void testMRAppHistoryForTAFailedInAssigned() throws Exception {
|
||||||
// test TA_CONTAINER_LAUNCH_FAILED for map
|
// test TA_CONTAINER_LAUNCH_FAILED for map
|
||||||
FailingAttemptsDuringAssignedMRApp app =
|
FailingAttemptsDuringAssignedMRApp app = null;
|
||||||
new FailingAttemptsDuringAssignedMRApp(1, 0,
|
|
||||||
TaskAttemptEventType.TA_CONTAINER_LAUNCH_FAILED);
|
|
||||||
testTaskAttemptAssignedFailHistory(app);
|
|
||||||
|
|
||||||
// test TA_CONTAINER_LAUNCH_FAILED for reduce
|
try {
|
||||||
app =
|
app =
|
||||||
new FailingAttemptsDuringAssignedMRApp(0, 1,
|
new FailingAttemptsDuringAssignedMRApp(1, 0,
|
||||||
TaskAttemptEventType.TA_CONTAINER_LAUNCH_FAILED);
|
TaskAttemptEventType.TA_CONTAINER_LAUNCH_FAILED);
|
||||||
testTaskAttemptAssignedFailHistory(app);
|
testTaskAttemptAssignedFailHistory(app);
|
||||||
|
app.close();
|
||||||
|
|
||||||
// test TA_CONTAINER_COMPLETED for map
|
// test TA_CONTAINER_LAUNCH_FAILED for reduce
|
||||||
app =
|
app =
|
||||||
new FailingAttemptsDuringAssignedMRApp(1, 0,
|
new FailingAttemptsDuringAssignedMRApp(0, 1,
|
||||||
TaskAttemptEventType.TA_CONTAINER_COMPLETED);
|
TaskAttemptEventType.TA_CONTAINER_LAUNCH_FAILED);
|
||||||
testTaskAttemptAssignedFailHistory(app);
|
testTaskAttemptAssignedFailHistory(app);
|
||||||
|
app.close();
|
||||||
|
|
||||||
// test TA_CONTAINER_COMPLETED for reduce
|
// test TA_CONTAINER_COMPLETED for map
|
||||||
app =
|
app =
|
||||||
new FailingAttemptsDuringAssignedMRApp(0, 1,
|
new FailingAttemptsDuringAssignedMRApp(1, 0,
|
||||||
TaskAttemptEventType.TA_CONTAINER_COMPLETED);
|
TaskAttemptEventType.TA_CONTAINER_COMPLETED);
|
||||||
testTaskAttemptAssignedFailHistory(app);
|
testTaskAttemptAssignedFailHistory(app);
|
||||||
|
app.close();
|
||||||
|
|
||||||
// test TA_FAILMSG for map
|
// test TA_CONTAINER_COMPLETED for reduce
|
||||||
app =
|
app =
|
||||||
new FailingAttemptsDuringAssignedMRApp(1, 0,
|
new FailingAttemptsDuringAssignedMRApp(0, 1,
|
||||||
TaskAttemptEventType.TA_FAILMSG);
|
TaskAttemptEventType.TA_CONTAINER_COMPLETED);
|
||||||
testTaskAttemptAssignedFailHistory(app);
|
testTaskAttemptAssignedFailHistory(app);
|
||||||
|
app.close();
|
||||||
|
|
||||||
// test TA_FAILMSG for reduce
|
// test TA_FAILMSG for map
|
||||||
app =
|
app =
|
||||||
new FailingAttemptsDuringAssignedMRApp(0, 1,
|
new FailingAttemptsDuringAssignedMRApp(1, 0,
|
||||||
TaskAttemptEventType.TA_FAILMSG);
|
TaskAttemptEventType.TA_FAILMSG);
|
||||||
testTaskAttemptAssignedFailHistory(app);
|
testTaskAttemptAssignedFailHistory(app);
|
||||||
|
app.close();
|
||||||
|
|
||||||
// test TA_FAILMSG_BY_CLIENT for map
|
// test TA_FAILMSG for reduce
|
||||||
app =
|
app =
|
||||||
new FailingAttemptsDuringAssignedMRApp(1, 0,
|
new FailingAttemptsDuringAssignedMRApp(0, 1,
|
||||||
TaskAttemptEventType.TA_FAILMSG_BY_CLIENT);
|
TaskAttemptEventType.TA_FAILMSG);
|
||||||
testTaskAttemptAssignedFailHistory(app);
|
testTaskAttemptAssignedFailHistory(app);
|
||||||
|
app.close();
|
||||||
|
|
||||||
// test TA_FAILMSG_BY_CLIENT for reduce
|
// test TA_FAILMSG_BY_CLIENT for map
|
||||||
app =
|
app =
|
||||||
new FailingAttemptsDuringAssignedMRApp(0, 1,
|
new FailingAttemptsDuringAssignedMRApp(1, 0,
|
||||||
TaskAttemptEventType.TA_FAILMSG_BY_CLIENT);
|
TaskAttemptEventType.TA_FAILMSG_BY_CLIENT);
|
||||||
testTaskAttemptAssignedFailHistory(app);
|
testTaskAttemptAssignedFailHistory(app);
|
||||||
|
app.close();
|
||||||
|
|
||||||
// test TA_KILL for map
|
// test TA_FAILMSG_BY_CLIENT for reduce
|
||||||
app =
|
app =
|
||||||
new FailingAttemptsDuringAssignedMRApp(1, 0,
|
new FailingAttemptsDuringAssignedMRApp(0, 1,
|
||||||
TaskAttemptEventType.TA_KILL);
|
TaskAttemptEventType.TA_FAILMSG_BY_CLIENT);
|
||||||
testTaskAttemptAssignedKilledHistory(app);
|
testTaskAttemptAssignedFailHistory(app);
|
||||||
|
app.close();
|
||||||
|
|
||||||
// test TA_KILL for reduce
|
// test TA_KILL for map
|
||||||
app =
|
app =
|
||||||
new FailingAttemptsDuringAssignedMRApp(0, 1,
|
new FailingAttemptsDuringAssignedMRApp(1, 0,
|
||||||
TaskAttemptEventType.TA_KILL);
|
TaskAttemptEventType.TA_KILL);
|
||||||
testTaskAttemptAssignedKilledHistory(app);
|
testTaskAttemptAssignedKilledHistory(app);
|
||||||
|
app.close();
|
||||||
|
|
||||||
|
// test TA_KILL for reduce
|
||||||
|
app =
|
||||||
|
new FailingAttemptsDuringAssignedMRApp(0, 1,
|
||||||
|
TaskAttemptEventType.TA_KILL);
|
||||||
|
testTaskAttemptAssignedKilledHistory(app);
|
||||||
|
app.close();
|
||||||
|
} finally {
|
||||||
|
app.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user