{"record":{"id":"f77b6f4f97faee03","repo":"apache/hadoop","slug":"unexpected-type-of-taskattempts-in-the-list","errorCode":null,"errorMessage":"Unexpected type of taskAttempts in the list...","messagePattern":"Unexpected type of taskAttempts in the list\\.\\.\\.","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/ParsedTask.java","lineNumber":110,"sourceCode":"  }\n\n  /**\n   * @return the list of attempts of this task.\n   */\n  public List<ParsedTaskAttempt> obtainTaskAttempts() {\n    List<LoggedTaskAttempt> attempts = getAttempts();\n    return convertTaskAttempts(attempts);\n  }\n\n  List<ParsedTaskAttempt> convertTaskAttempts(\n      List<LoggedTaskAttempt> attempts) {\n    List<ParsedTaskAttempt> result = new ArrayList<ParsedTaskAttempt>();\n\n    for (LoggedTaskAttempt t : attempts) {\n      if (t instanceof ParsedTaskAttempt) {\n        result.add((ParsedTaskAttempt)t);\n      } else {\n        throw new RuntimeException(\n            \"Unexpected type of taskAttempts in the list...\");\n      }\n    }\n    return result;\n  }\n\n  /** Dump the extra info of ParsedTask */\n  void dumpParsedTask() {\n    LOG.info(\"ParsedTask details:\" + obtainCounters()\n        + \"\\n\" + obtainFailedDueToAttemptId()\n        + \"\\nPreferred Locations are:\");\n    List<LoggedLocation> loc = getPreferredLocations();\n    for (LoggedLocation l : loc) {\n      LOG.info(l.getLayers() + \";\" + l.toString());\n    }\n    List<ParsedTaskAttempt> attempts = obtainTaskAttempts();\n    for (ParsedTaskAttempt attempt : attempts) {\n      attempt.dumpParsedTaskAttempt();","sourceCodeStart":92,"sourceCodeEnd":128,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/ParsedTask.java#L92-L128","documentation":"Error \"Unexpected type of taskAttempts in the list...\" thrown in apache/hadoop.","triggerScenarios":"ParsedTask encounters a task attempt object of an unexpected runtime type in its attempt list, indicating corrupted deserialized task data.","commonSituations":"See trigger scenarios.","solutions":["Ensure all entries in the task attempt list are ParsedTaskAttempt instances."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-23T01:17:44.959Z"}