apache/hadoop · error · RuntimeException
Unexpected type of taskAttempts in the list...
Error message
Unexpected type of taskAttempts in the list...
What it means
Rumen conversion guard: a LoggedTaskAttempt in the list is not a ParsedTaskAttempt, so the parsed-attempt view cannot be produced; indicates mismatched parser layers producing the attempt list.
Solutions
- Ensure all entries in the task attempt list are ParsedTaskAttempt instances.
Defensive patterns
Strategy: validation
When it happens
Trigger: ParsedTask encounters a task attempt object of an unexpected runtime type in its attempt list, indicating corrupted deserialized task data.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/f77b6f4f97faee03.
Report an issue: GitHub.
Appendix: source
Thrown at hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/ParsedTask.java:110
}
/**
* @return the list of attempts of this task.
*/
public List<ParsedTaskAttempt> obtainTaskAttempts() {
List<LoggedTaskAttempt> attempts = getAttempts();
return convertTaskAttempts(attempts);
}
List<ParsedTaskAttempt> convertTaskAttempts(
List<LoggedTaskAttempt> attempts) {
List<ParsedTaskAttempt> result = new ArrayList<ParsedTaskAttempt>();
for (LoggedTaskAttempt t : attempts) {
if (t instanceof ParsedTaskAttempt) {
result.add((ParsedTaskAttempt)t);
} else {
throw new RuntimeException(
"Unexpected type of taskAttempts in the list...");
}
}
return result;
}
/** Dump the extra info of ParsedTask */
void dumpParsedTask() {
LOG.info("ParsedTask details:" + obtainCounters()
+ "\n" + obtainFailedDueToAttemptId()
+ "\nPreferred Locations are:");
List<LoggedLocation> loc = getPreferredLocations();
for (LoggedLocation l : loc) {
LOG.info(l.getLayers() + ";" + l.toString());
}
List<ParsedTaskAttempt> attempts = obtainTaskAttempts();
for (ParsedTaskAttempt attempt : attempts) {
attempt.dumpParsedTaskAttempt();View on GitHub (pinned to 2add963021)