apache/hadoop · error · CancellationException
Upload of part <partNumber> was aborted
Error message
Upload of part <partNumber> was aborted
What it means
Error "Upload of part <partNumber> was aborted" thrown in apache/hadoop.
Source
Thrown at hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3ABlockOutputStream.java:1172
/**
* Block awaiting all outstanding uploads to complete.
* Any interruption of this thread or a failure in an upload will
* trigger cancellation of pending uploads and an abort of the MPU.
* @return list of results or null if interrupted.
* @throws CancellationException waiting for the uploads to complete was cancelled
* @throws IOException IO Problems
*/
private List<CompletedPart> waitForAllPartUploads()
throws CancellationException, IOException {
LOG.debug("Waiting for {} uploads to complete", partETagsFutures.size());
try {
// wait for the uploads to finish in order.
final List<CompletedPart> completedParts = awaitAllFutures(partETagsFutures);
for (CompletedPart part : completedParts) {
if (StringUtils.isEmpty(part.eTag())) {
// this was somehow cancelled/aborted
// explicitly fail.
throw new CancellationException("Upload of part "
+ part.partNumber() + " was aborted");
}
}
return completedParts;
} catch (CancellationException e) {
// One or more of the futures has been cancelled.
LOG.warn("Cancelled while waiting for uploads to {} to complete", key, e);
throw e;
} catch (RuntimeException | IOException ie) {
// IO failure or low level problem.
LOG.debug("Failure while waiting for uploads to {} to complete;"
+ " uploadAborted={}",
key, uploadAborted.get(), ie);
abort();
throw ie;
}
}
View on GitHub (pinned to 2add963021)
Solutions
- Retry the upload; a concurrent abort or failure caused the part upload to be aborted. Inspect logs for the abort cause.
When it happens
Trigger: Thrown at hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3ABlockOutputStream.java:1172 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/34ea1695fd7c2e18.
Report an issue: GitHub.