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] revert skip deletion error, since the error file was not found is already skipped on the side of the grpc function (#5760)
Konstantin Lebedev9c440d472c97
diff --git a/weed/s3api/s3api_object_handlers_delete.go b/weed/s3api/s3api_object_handlers_delete.goindex 43849bb07d..7656b9d389 100644--- a/weed/s3api/s3api_object_handlers_delete.go+++ b/weed/s3api/s3api_object_handlers_delete.go@@ -30,12 +30,10 @@ func (s3a *S3ApiServer) DeleteObjectHandler(w http.ResponseWriter, r *http.Requetarget := util.FullPath(fmt.Sprintf("%s/%s%s", s3a.option.BucketsPath, bucket, object))dir, name := target.DirAndName()- s3a.WithFilerClient(false, func(client filer_pb.SeaweedFilerClient) error {+ err := s3a.WithFilerClient(false, func(client filer_pb.SeaweedFilerClient) error {- err := doDeleteEntry(client, dir, name, true, false)- if err != nil {- // skip deletion error, usually the file is not found- return nil+ if err := doDeleteEntry(client, dir, name, true, false); err != nil {+ return err}if s3a.option.AllowEmptyFolder {@@ -53,6 +51,10 @@ func (s3a *S3ApiServer) DeleteObjectHandler(w http.ResponseWriter, r *http.Requereturn nil})+ if err != nil {+ s3err.WriteErrorResponse(w, r, s3err.ErrInternalError)+ return+ }w.WriteHeader(http.StatusNoContent)}