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: clean up orphaned needles on remote.cache partial download failure (#8675)
Chris Luf4073107cb0a
diff --git a/weed/server/filer_grpc_server_remote.go b/weed/server/filer_grpc_server_remote.goindex e790a12ef2..3174c42062 100644--- a/weed/server/filer_grpc_server_remote.go+++ b/weed/server/filer_grpc_server_remote.go@@ -241,6 +241,12 @@ func (fs *FilerServer) doCacheRemoteObjectToLocalCluster(ctx context.Context, re})chunksMu.Unlock()if err != nil {+ // Clean up any chunks that were successfully written before the error.+ // Without this, partial downloads leave orphaned needles in volume servers+ // that accumulate across retry cycles and cannot be reclaimed by vacuum.+ if len(chunks) > 0 {+ fs.filer.DeleteUncommittedChunks(ctx, chunks)+ }return nil, err}