Copilot commented on code in PR #8585:
URL: https://github.com/apache/opendal/pull/8585#discussion_r4654042625


##########
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:
   AI-generated review: This changes the S3 error contract, including 
`OperationAborted` retryability at lines 2294–2296, but the PR reports only 
mock validation. `CONTRIBUTING.md:87–96,107–108` requires actual-service 
reproduction before fixing service-specific bugs. Please provide sanitized S3 
reproduction evidence for both classifications, including whether completion 
can recover after `OperationAborted`, or obtain explicit maintainer acceptance 
of a conservative maintenance change.



-- 
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]

Reply via email to