apache/hadoop · error · IOException
Writing less bytes than advertised size.
Error message
Writing less bytes than advertised size.
What it means
Error "Writing less bytes than advertised size." thrown in apache/hadoop.
Source
Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/Chunk.java:422
} else {
throw new IOException("Writing more bytes than advertised size.");
}
}
@Override
public void flush() throws IOException {
out.flush();
}
@Override
public void close() throws IOException {
if (closed == true) {
return;
}
try {
if (remain > 0) {
throw new IOException("Writing less bytes than advertised size.");
}
} finally {
closed = true;
}
}
}
}
View on GitHub (pinned to 2add963021)
Solutions
- Flush and close only after writing the full advertised entry size; do not close the appender early.
When it happens
Trigger: Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/Chunk.java:422 when the library encounters an invalid state.
Common situations: Occurs when a chunk is closed with fewer bytes written than advertised. Write exactly the declared number of bytes or declare the correct size.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/eb0f497a744311fb.
Report an issue: GitHub.