SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
s3: defer a recently-unreachable owner that is also the current filer (#9808)
Chris Luef1aa4f9365f
diff --git a/weed/s3api/s3api_handlers.go b/weed/s3api/s3api_handlers.goindex 09fbbe81ad..52c2d0cf3b 100644--- a/weed/s3api/s3api_handlers.go+++ b/weed/s3api/s3api_handlers.go@@ -58,16 +58,16 @@ func (s3a *S3ApiServer) withFilerClientFailover(preferred pb.ServerAddress, streaddCandidate(filer)}- // An explicit preferred owner is tried first even if health-flagged: demoting it- // behind a healthy replica would let that replica's authoritative NotFound mask a- // write that has only reached the owner. Health-order the rest, unhealthy ones- // last so a request still progresses when all are flagged.+ // preferred (the routed owner) is tried first even when health-flagged, so a+ // replica's authoritative NotFound can't mask a write that only reached the owner.+ // A recently-unreachable filer counts as unhealthy, deferring a dead owner that is+ // also the current filer to the tail rather than dialing it before healthy replicas.var healthy, unhealthy []pb.ServerAddressfor _, filer := range candidates {if filer == preferred {continue}- if s3a.filerClient.ShouldSkipUnhealthyFiler(filer) {+ if s3a.filerClient.ShouldSkipUnhealthyFiler(filer) || s3a.ownerRecentlyUnreachable(filer) {unhealthy = append(unhealthy, filer)} else {healthy = append(healthy, filer)