|
@@ -368,14 +368,16 @@ public class TaskAttemptListenerImpl extends CompositeService
|
|
|
org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId yarnAttemptID =
|
|
|
TypeConverter.toYarn(taskAttemptID);
|
|
|
|
|
|
+ AMFeedback feedback = new AMFeedback();
|
|
|
AtomicReference<TaskAttemptStatus> lastStatusRef =
|
|
|
attemptIdToStatus.get(yarnAttemptID);
|
|
|
if (lastStatusRef == null) {
|
|
|
- throw new IllegalStateException("Status update was called"
|
|
|
- + " with illegal TaskAttemptId: " + yarnAttemptID);
|
|
|
+ LOG.error("Status update was called with illegal TaskAttemptId: "
|
|
|
+ + yarnAttemptID);
|
|
|
+ feedback.setTaskFound(false);
|
|
|
+ return feedback;
|
|
|
}
|
|
|
|
|
|
- AMFeedback feedback = new AMFeedback();
|
|
|
feedback.setTaskFound(true);
|
|
|
|
|
|
// Propagating preemption to the task if TASK_PREEMPTION is enabled
|