hcrosse commented on issue #8584:
URL: https://github.com/apache/opendal/issues/8584#issuecomment-7067713247

   That direction makes sense to me, and it lines up with RFC 8145's 
`set_temporary()` contract. I checked `RetryWrapper` and `TimeoutWrapper` and 
the same `S3Writer`, `S3Copier`, and `S3Deleter` handles stay alive across 
retries, so tracking uncertain state inside `services/s3` right before 
`http_transport().send()` (after signing) works without changing the layer or 
transport traits.
   
   A few things I ran into while tracing those paths:
   
   1. `S3Backend::restore` builds a fresh `S3Copier` on every 
`RetryService::restore` attempt, so `TimeoutService::restore` cancellation 
drops the copier and loses handle state (direct 5xx and transport errors still 
stop). Okay to note that as a v1 limitation?
   2. On `TimeoutLayer` or `TailCutLayer` cancellation, `RetryLayer` discards 
the timeout error and sleeps once before calling back into S3. S3 can still 
refuse the second request with permanent `Unexpected`, though it cannot surface 
the original timeout error object on that path.
   3. `BatchDeleter::close` has its own retry loop for temporary per item 
errors (falling back to `delete_once` when one item is left), and 
`flush_buffer` collapses zero success batches to a generic permanent 
`Unexpected` even on all `PreconditionFailed` or `SlowDown`. In `services/s3` I 
can track uncertain state per `(path, OpDelete)` across `delete_batch` and 
`delete_once`, mark ambiguous per item errors permanent for conditional items, 
and return `Err` from `delete_batch` when `succeeded` is empty.
   4. For the pre commit allowlist (signing errors, `RateLimited` including 503 
`SlowDown`, and `PutObject` `ConditionalRequestConflict`), how do you want `409 
OperationAborted` handled under v1, especially on `CompleteMultipartUpload`?
   5. `s3_append_object_request` only sends `if_match` and `if_not_exists` at 
offset 0 while `AppendWriter` starts at the existing object size, so conditions 
get dropped on existing objects, and `x-amz-write-offset-bytes` needs an S3 
Express directory bucket anyway. I'd rather leave conditional append out of v1 
and file the dropped condition bug separately.
   
   I'm planning to run live AWS S3 captures early next week for both #8585 and 
the v1 checks before opening a PR.
   


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