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: skip 503 when client disconnects during remote cache wait (#10071)
Chris Lu7abed4e517dc
diff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.goindex d711585673..ffd9a4b40c 100644--- a/weed/s3api/s3api_object_handlers.go+++ b/weed/s3api/s3api_object_handlers.go@@ -1011,6 +1011,11 @@ func (s3a *S3ApiServer) streamFromVolumeServers(w http.ResponseWriter, r *http.R}return newStreamErrorWithResponse(cacheErr)} else {+ // Client disconnected during the cache wait: report cancellation, not 503,+ // so we don't write to a closed connection.+ if ctxErr := r.Context().Err(); ctxErr != nil {+ return ctxErr+ }// Cache not ready yet; return 503 with Retry-After for client backoffglog.V(1).Infof("streamFromVolumeServers: remote object %s/%s not cached yet, returning 503 for retry", bucket, object)w.Header().Set("Retry-After", "2")