Skip to content

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.

add warning for not enough copies when skipping vacuuming volumes

chrislub3696024d118
diff --git a/weed/topology/topology_vacuum.go b/weed/topology/topology_vacuum.go
index f5b1eaaff0..b1a8b66d41 100644
--- a/weed/topology/topology_vacuum.go
+++ b/weed/topology/topology_vacuum.go
@@ -270,7 +270,11 @@ func (t *Topology) vacuumOneVolumeId(grpcDialOption grpc.DialOption, volumeLayou
isEnoughCopies := volumeLayout.enoughCopies(vid)
volumeLayout.accessLock.RUnlock()
- if isReadOnly || !isEnoughCopies {
+ if isReadOnly {
+ return
+ }
+ if !isEnoughCopies {
+ glog.Warningf("skip vacuuming: not enough copies for volume:%d", vid)
return
}