{"record":{"id":"c07ca6675328ccdf","repo":"apache/hadoop","slug":"attempt-result-is-not-succeeded-failed-or-killed","errorCode":null,"errorMessage":"attempt result is not SUCCEEDED, FAILED or KILLED: ","messagePattern":"attempt result is not SUCCEEDED, FAILED or KILLED: ","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/ZombieJob.java","lineNumber":511,"sourceCode":"      } else if (loggedAttempt.getResult() == Values.FAILED) {\n        /**\n         * FAILED attempt is not affected by locality however, made-up FAILED\n         * attempts ARE affected by locality, since statistics are present for\n         * attempts of different locality.\n         */\n        return getTaskAttemptInfo(loggedTask, loggedAttempt);\n      } else if (loggedAttempt.getResult() == Values.SUCCESS) {\n        int loggedLocality = getLocality(loggedTask, loggedAttempt);\n        if (locality == loggedLocality) {\n          return getTaskAttemptInfo(loggedTask, loggedAttempt);\n        } else {\n          // attempt succeeded in trace. It is scheduled in simulation with\n          // a different locality.\n          return scaleInfo(loggedTask, loggedAttempt, locality, loggedLocality,\n              rackLocalOverNodeLocal, rackRemoteOverNodeLocal);\n        }\n      } else {\n        throw new IllegalArgumentException(\n            \"attempt result is not SUCCEEDED, FAILED or KILLED: \"\n                + loggedAttempt.getResult());\n      }\n    }\n  }\n\n  private long sanitizeTaskRuntime(long time, ID id) {\n    if (time < 0) {\n      LOG.warn(\"Negative running time for task \"+id+\": \"+time);\n      return 100L; // set default to 100ms.\n    }\n    return time;\n  }\n  \n  @SuppressWarnings(\"hiding\") \n  private TaskAttemptInfo scaleInfo(LoggedTask loggedTask,\n      LoggedTaskAttempt loggedAttempt, int locality, int loggedLocality,\n      double rackLocalOverNodeLocal, double rackRemoteOverNodeLocal) {","sourceCodeStart":493,"sourceCodeEnd":529,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/ZombieJob.java#L493-L529","documentation":"Error \"attempt result is not SUCCEEDED, FAILED or KILLED: \" thrown in apache/hadoop.","triggerScenarios":"A completed task attempt in the job story has an outcome other than SUCCEEDED, FAILED, or KILLED, which ZombieJob cannot classify.","commonSituations":"See trigger scenarios.","solutions":["Verify the trace attempt result field; it must be SUCCEEDED, FAILED, or KILLED."],"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"}