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
report when size is closing to the volume limit fix error
Chris Lu0e5c4e432db1
diff --git a/go/storage/store.go b/go/storage/store.goindex 0f10331ca9..84386cd862 100644--- a/go/storage/store.go+++ b/go/storage/store.go@@ -267,9 +267,9 @@ func (s *Store) Write(i VolumeId, n *Needle) (size uint32, err error) {} else {err = fmt.Errorf("Volume Size Limit %d Exceeded! Current size is %d", s.volumeSizeLimit, v.ContentSize())}- if s.volumeSizeLimit < v.ContentSize()+uint64(size) {+ if s.volumeSizeLimit < v.ContentSize()+3*uint64(size) {glog.V(0).Infoln("volume", i, "size", v.ContentSize(), "will exceed limit", s.volumeSizeLimit)- if e = s.Join(); e != nil {+ if e := s.Join(); e != nil {glog.V(0).Infoln("error when reporting size:", e)}}