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
skips compact if store is stopping
Konstantin Lebedevfb97e234c9f4
diff --git a/weed/storage/store_vacuum.go b/weed/storage/store_vacuum.goindex 0d6e0b0f13..cbd716b32f 100644--- a/weed/storage/store_vacuum.go+++ b/weed/storage/store_vacuum.go@@ -26,6 +26,9 @@ func (s *Store) CompactVolume(vid needle.VolumeId, preallocate int64, compactionreturn fmt.Errorf("volume id %d is not found during compact", vid)}func (s *Store) CommitCompactVolume(vid needle.VolumeId) (bool, error) {+ if s.isStopping {+ return false, fmt.Errorf("volume id %d skips compact because volume is stopping", vid)+ }if v := s.findVolume(vid); v != nil {return v.IsReadOnly(), v.CommitCompact()}