{"record":{"id":"8ae2c5b89e586a9a","repo":"apache/hadoop","slug":"failed-to-delete-checkpoint-during-abort","errorCode":null,"errorMessage":"Failed to delete checkpoint during abort","messagePattern":"Failed to delete checkpoint during abort","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/checkpoint/FSCheckpointService.java","lineNumber":166,"sourceCode":"    if (!fs.rename(tmpfile(dst), dst)) {\n      // attempt to clean up\n      abort(ch);\n      throw new IOException(\"Failed to promote checkpoint\" +\n      \t\t tmpfile(dst) + \" -> \" + dst);\n    }\n    return new FSCheckpointID(hch.getDestination());\n  }\n\n  @Override\n  public void abort(CheckpointWriteChannel ch) throws IOException {\n    if (ch.isOpen()) {\n      ch.close();\n    }\n    FSCheckpointWriteChannel hch = (FSCheckpointWriteChannel)ch;\n    Path tmp = tmpfile(hch.getDestination());\n    try {\n      if (!fs.delete(tmp, false)) {\n        throw new IOException(\"Failed to delete checkpoint during abort\");\n      }\n    } catch (FileNotFoundException e) {\n      // IGNORE\n    }\n  }\n\n  @Override\n  public boolean delete(CheckpointID id) throws IOException,\n      InterruptedException {\n    if (!(id instanceof FSCheckpointID)) {\n      throw new IllegalArgumentException(\n          \"Mismatched checkpoint type: \" + id.getClass());\n    }\n    Path tmp = ((FSCheckpointID)id).getPath();\n    try {\n      return fs.delete(tmp, false);\n    } catch (FileNotFoundException e) {\n      // IGNORE","sourceCodeStart":148,"sourceCodeEnd":184,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/checkpoint/FSCheckpointService.java#L148-L184","documentation":"Error \"Failed to delete checkpoint during abort\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/checkpoint/FSCheckpointService.java:166 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check filesystem permissions on the checkpoint directory and remove leftover temp checkpoint files manually if abort cleanup failed."],"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"}