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
fix(s3api): improve PutBucketHandler comment for orphaned collection recovery
Chris Lu5208c7c7275f
diff --git a/weed/s3api/s3api_bucket_handlers.go b/weed/s3api/s3api_bucket_handlers.goindex e8a1fd0648..53e2fce366 100644--- a/weed/s3api/s3api_bucket_handlers.go+++ b/weed/s3api/s3api_bucket_handlers.go@@ -251,11 +251,12 @@ func (s3a *S3ApiServer) PutBucketHandler(w http.ResponseWriter, r *http.Request)}}- // If collection exists but bucket directory doesn't, this is an orphaned state- // from a previous bucket deletion where volumes haven't been fully cleaned up yet.- // Allow the bucket to be recreated by proceeding with directory creation.+ // If collection exists but bucket directory doesn't, this is an inconsistent state+ // that can occur when a previous bucket deletion partially completed (collection+ // deletion failed but directory deletion succeeded, or volumes were recreated).+ // Recover by proceeding to create the missing bucket directory.if collectionExists {- glog.Warningf("PutBucketHandler: collection exists but bucket directory missing for %s, recreating bucket directory", bucket)+ glog.Warningf("PutBucketHandler: collection exists but bucket directory missing for %s, recovering by creating bucket directory", bucket)}// Check for x-amz-bucket-object-lock-enabled header BEFORE creating bucket