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
volume: report error if a volume has nil data backend
chrislu81d615929068
diff --git a/weed/storage/volume_vacuum.go b/weed/storage/volume_vacuum.goindex ac6f8f8d59..1ad4689588 100644--- a/weed/storage/volume_vacuum.go+++ b/weed/storage/volume_vacuum.go@@ -79,6 +79,9 @@ func (v *Volume) Compact2(preallocate int64, compactionBytePerSecond int64, progv.lastCompactIndexOffset = v.IndexFileSize()v.lastCompactRevision = v.SuperBlock.CompactionRevisionglog.V(3).Infof("creating copies for volume %d ...", v.Id)+ if v.DataBackend == nil {+ return fmt.Errorf("volume %d backend is empty remote:%v", v.Id, v.HasRemoteFile())+ }if err := v.DataBackend.Sync(); err != nil {glog.V(0).Infof("compact2 fail to sync volume dat %d: %v", v.Id, err)}