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
backup: don't Close a volume after Destroy (#12225)
Denis Kiefta2f595b207d8
diff --git a/weed/command/backup.go b/weed/command/backup.goindex ea6e083fe6..62db28f5f9 100644--- a/weed/command/backup.go+++ b/weed/command/backup.go@@ -163,7 +163,8 @@ func backupFromLocation(volumeServer pb.ServerAddress, grpcDialOption grpc.DialOv.Close()return fmt.Errorf("destroying volume: %w", err), false}- v.Close() // Close the destroyed volume+ // Destroy already closed v. Closing it again hangs, because Destroy+ // leaves the compaction flag set.// recreate an empty volumev, err = storage.NewVolume(*s.dir, *s.dir, *s.collection, vid, storage.NeedleMapInMemory, replication, ttl, 0, ver, 0, 0)if err != nil {