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
filer: ensure logs are persisted
Chris Lu17f2d05cded9
diff --git a/weed/filer2/filer_notify.go b/weed/filer2/filer_notify.goindex 340f19fb57..e5f9eba0a3 100644--- a/weed/filer2/filer_notify.go+++ b/weed/filer2/filer_notify.go@@ -78,8 +78,13 @@ func (f *Filer) logFlushFunc(startTime, stopTime time.Time, buf []byte) {// startTime.Second(), startTime.Nanosecond(),)- if err := f.appendToFile(targetFile, buf); err != nil {- glog.V(0).Infof("log write failed %s: %v", targetFile, err)+ for {+ if err := f.appendToFile(targetFile, buf); err != nil {+ glog.V(1).Infof("log write failed %s: %v", targetFile, err)+ time.Sleep(737 * time.Millisecond)+ } else {+ break+ }}}