hcrosse commented on code in PR #8585:
URL: https://github.com/apache/opendal/pull/8585#discussion_r4654067841
##########
core/services/s3/src/core.rs:
##########
@@ -2275,6 +2275,10 @@ pub fn parse_s3_error_code(ctx: ErrorContext, code:
&str) -> Option<(ErrorKind,
// CopyObject. Classify the error code explicitly because the HTTP
// status alone cannot preserve the NotFound semantics in this case.
"NoSuchKey" => Some((ErrorKind::NotFound, false)),
+ // NoSuchUpload means the multipart upload session no longer exists,
+ // not a missing target object key, so it must not map to NotFound or
+ // be rewritten to ConditionNotMatch under if_match.
+ "NoSuchUpload" => Some((ErrorKind::Unexpected, false)),
Review Comment:
Confirmed: no live AWS S3 bucket was available here, as noted in the AI
Usage Statement. Both mappings follow the accepted [RFC
8145](https://github.com/apache/opendal/blob/e60a63f6add87c13bce20e24675f03cdfcba1b6d/core/core/src/docs/rfcs/8145_conflict_error_kind.md#L122-L155)
contract (treating `OperationAborted` on `CompleteMultipartUpload` as
permanent like `ConditionalRequestConflict`, and keeping documented S3 `404
NoSuchUpload` distinct from missing target `NoSuchKey` under `if_match`).
Leaving this thread open for maintainer review on accepting this as an RFC
alignment change or requiring live S3 verification.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]