TaskAttemptID taskAttemptID) {
assert (taskAttemptID.getTaskType() == TaskType.REDUCE);
TaskID taskId = taskAttemptID.getTaskID();
TaskType taskType = taskAttemptID.getTaskType();
TaskAttemptInfo taskAttemptInfo = jobStory.getTaskAttemptInfo(taskType,
taskId.getId(), taskAttemptID.getId());
if (LOG.isDebugEnabled()) {
LOG.debug("get an attempt: "
+ taskAttemptID.toString()
+ ", state="
+ taskAttemptInfo.getRunState()
+ ", runtime="
+ ((taskType == TaskType.MAP) ? taskAttemptInfo.getRuntime()
: ((ReduceTaskAttemptInfo) taskAttemptInfo).getReduceRuntime()));
}
return taskAttemptInfo;
}