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

   Checked all five points against `main` (`e60a63f6`):
   
   1. **Versioned restore:** Agreed on the diagnosis — `RetryService::restore` 
constructs a fresh `S3Copier` on each retry, so direct ambiguous errors from 
conditional copy / multipart completion can still stop as non-retryable 
`Unexpected`, whereas `TimeoutService::restore` dropping the future loses 
handle state and allows a second mutation. Please document that explicitly as 
an uncovered gap in v1's no-replay coverage rather than claiming restore is 
fully protected (a shared path-keyed flag on `S3Backend` would collide across 
independent restores).
   2. **`TimeoutLayer` / `TailCutLayer` cancellation on a retained handle:** 
One backoff and one re-entry are fine for v1. When `RetryLayer` grants a retry, 
it drops the timeout error before re-entry, so the S3 guard can return 
non-retryable `Unexpected` carrying the operation, target, and the fact that 
the previous dispatch has an unknown outcome (with the wire-level guarantee 
being that only one mutation was sent). For errors S3 receives directly, please 
keep preserving the original cause.
   3. **Batch delete (`S3Deleter` / `BatchDeleter`):** Both the zero-success 
`flush_buffer` collapse and the singleton `delete_once` fallback diagnoses 
match `main`. Exact `(path, OpDelete)` duplicates already coalesce in the 
buffer, but watch for the same `(key, version)` queued with *different* ETags: 
S3's `DeleteObjects` error entries only report `Key` and `VersionId`, so 
assigning an error to the first matching entry can clear the wrong item's 
state. Those need either separate dispatches or conservative handling as a 
group. Keep the guard covering both `delete_batch` and `delete_once`, and for 
zero-success batches containing conditional items, return a specific error with 
path/version context — returning a temporary error only when every pending item 
is definitely safe to replay. Please keep all-unconditional zero-success 
batches unchanged so their existing retry behavior does not shift as a side 
effect.
   4. **`409 OperationAborted`:** Keep the current temporary `Conflict` mapping 
unchanged for v1. For `CompleteMultipartUpload`, changing it to permanent 
`Conflict` would require live AWS S3 wire capture showing `OperationAborted` 
followed by confirmation that the same `uploadId` and parts cannot be completed 
and a fresh upload is required (RFC 8145 establishes that rule specifically for 
`ConditionalRequestConflict`).
   5. **Conditional append:** Please file the dropped-condition bug on the 
first append to an existing non-empty object separately. Offset-0 conditional 
append (including both missing objects and existing 0-byte objects) remains in 
scope for replay protection; if an S3 Express One Zone directory bucket is 
unavailable for live capture, leave that path explicitly pending rather than 
counting it as covered in v1.
   
   Looking forward to the live AWS S3 captures!
   
   *(This comment was generated by AI.)*
   


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