apache/hadoop · error · IOException
Failed to promote checkpoint
Error message
Failed to promote checkpoint${tmpfile(dst)} -> ${dst} What it means
Fires in FSCheckpointService.commit: the checkpoint's temporary file (tmpfile(dst)) could not be renamed to its final destination (fs.rename returned false). commit() aborts the channel (deleting the temp file) and throws this IOException with both paths, meaning the checkpoint data exists only as a temp file and was not promoted to a committed checkpoint.
Solutions
- Check filesystem permissions and available space for the checkpoint directory; the atomic rename from the temp file failed, so retry after resolving the FS error.
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/checkpoint/FSCheckpointService.java:151 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/83f6616ea0be98fb.
Report an issue: GitHub.
Appendix: source
Thrown at hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/checkpoint/FSCheckpointService.java:151
@Override
public boolean isOpen() {
return isOpen;
}
}
@Override
public CheckpointID commit(CheckpointWriteChannel ch)
throws IOException, InterruptedException {
if (ch.isOpen()) {
ch.close();
}
FSCheckpointWriteChannel hch = (FSCheckpointWriteChannel)ch;
Path dst = hch.getDestination();
if (!fs.rename(tmpfile(dst), dst)) {
// attempt to clean up
abort(ch);
throw new IOException("Failed to promote checkpoint" +
tmpfile(dst) + " -> " + dst);
}
return new FSCheckpointID(hch.getDestination());
}
@Override
public void abort(CheckpointWriteChannel ch) throws IOException {
if (ch.isOpen()) {
ch.close();
}
FSCheckpointWriteChannel hch = (FSCheckpointWriteChannel)ch;
Path tmp = tmpfile(hch.getDestination());
try {
if (!fs.delete(tmp, false)) {
throw new IOException("Failed to delete checkpoint during abort");
}
} catch (FileNotFoundException e) {
// IGNOREView on GitHub (pinned to 2add963021)