mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-20 11:32:19 +00:00
fix(replication): handle TLS CA trust and force-delete replication edge cases (#1983)
This commit is contained in:
@@ -2051,6 +2051,10 @@ impl ReplicateObjectInfoExt for ReplicateObjectInfo {
|
||||
warn!("replication head_object failed bucket:{} arn:{} error:{}", bucket, tgt_client.arn, e);
|
||||
return rinfo;
|
||||
}
|
||||
} else if e.raw_response().is_some_and(|resp| resp.status().as_u16() == 404) {
|
||||
// Some HEAD Object 404 responses are surfaced by the AWS SDK as `response error`
|
||||
// instead of `service error (NotFound)`. Treat raw HTTP 404 as object-not-found
|
||||
// so replication can proceed with PUT.
|
||||
} else {
|
||||
rinfo.error = Some(e.to_string());
|
||||
warn!("replication head_object failed bucket:{} arn:{} error:{}", bucket, tgt_client.arn, e);
|
||||
|
||||
Reference in New Issue
Block a user