apache/hadoop · error · UnsupportedOperationException
Abortable.abort() is not supported
Error message
Abortable.abort() is not supported
What it means
Thrown by FSDataOutputStream.abort when the wrapped stream does not implement Abortable. Abort semantics are unavailable, so the caller must fall back to close/ignore; raised as UnsupportedOperationException.
Solutions
- Check whether the stream implements Abortable before calling abort().
- For filesystems without abort support (e.g. non-S3A), close the stream and delete the partial output explicitly.
Defensive patterns
Strategy: type-guard
When it happens
Trigger: Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FSDataOutputStream.java:184 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/79d60ede61c0e7c2.
Report an issue: GitHub.
Appendix: source
Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FSDataOutputStream.java:184
*/
@Override
public IOStatistics getIOStatistics() {
return IOStatisticsSupport.retrieveIOStatistics(wrappedStream);
}
/**
* Invoke {@code abort()} on the wrapped stream if it
* is Abortable, otherwise raise an
* {@code UnsupportedOperationException}.
* @throws UnsupportedOperationException if not available.
* @return the result.
*/
@Override
public AbortableResult abort() {
if (wrappedStream instanceof Abortable) {
return ((Abortable) wrappedStream).abort();
} else {
throw new UnsupportedOperationException(
FSExceptionMessages.ABORTABLE_UNSUPPORTED);
}
}
}
View on GitHub (pinned to 2add963021)