{"record":{"id":"3e4c37f67baff65f","repo":"apache/hadoop","slug":"status-cannot-be","errorCode":null,"errorMessage":"status cannot be ","messagePattern":"status cannot be ","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/TaskAttemptInfo.java","lineNumber":39,"sourceCode":"\nimport org.apache.hadoop.mapred.TaskStatus.State;\n\n/**\n * {@link TaskAttemptInfo} is a collection of statistics about a particular\n * task-attempt gleaned from job-history of the job.\n */\npublic abstract class TaskAttemptInfo {\n  protected final State state;\n  protected final TaskInfo taskInfo;\n\n  protected final List<List<Integer>> allSplits;\n\n  protected TaskAttemptInfo\n       (State state, TaskInfo taskInfo, List<List<Integer>> allSplits) {\n    if (state == State.SUCCEEDED || state == State.FAILED) {\n      this.state = state;\n    } else {\n      throw new IllegalArgumentException(\"status cannot be \" + state);\n    }\n    this.taskInfo = taskInfo;\n    this.allSplits = allSplits;\n  }\n\n  protected TaskAttemptInfo\n       (State state, TaskInfo taskInfo) {\n    this(state, taskInfo, LoggedTaskAttempt.SplitVectorKind.getNullSplitsVector());\n  }\n\n  /**\n   * Get the final {@link State} of the task-attempt.\n   * \n   * @return the final <code>State</code> of the task-attempt\n   */\n  public State getRunState() {\n    return state;\n  }","sourceCodeStart":21,"sourceCodeEnd":57,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/TaskAttemptInfo.java#L21-L57","documentation":"Error \"status cannot be \" thrown in apache/hadoop.","triggerScenarios":"TaskAttemptInfo is constructed with an invalid (empty/unknown) status string while reading job history data.","commonSituations":"See trigger scenarios.","solutions":["Set a valid task attempt status before serializing; the status field is null or empty."],"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-22T20:17:22.307Z"}