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
metadata skip reading un-available logs
chrislu3fc3e7083c44
diff --git a/weed/filer/filer_notify.go b/weed/filer/filer_notify.goindex 77b6592883..f8a1dd603e 100644--- a/weed/filer/filer_notify.go+++ b/weed/filer/filer_notify.go@@ -5,6 +5,7 @@ import ("fmt""io""math"+ "regexp""strings""time"@@ -108,6 +109,10 @@ func (f *Filer) logFlushFunc(startTime, stopTime time.Time, buf []byte) {}}+var (+ VolumeNotFoundPattern = regexp.MustCompile(`volume \d+? not found`)+)+func (f *Filer) ReadPersistedLogBuffer(startTime time.Time, stopTsNs int64, eachLogEntryFn func(logEntry *filer_pb.LogEntry) error) (lastTsNs int64, isDone bool, err error) {startTime = startTime.UTC()@@ -159,6 +164,10 @@ func (f *Filer) ReadPersistedLogBuffer(startTime time.Time, stopTsNs int64, eachif err == io.EOF {continue}+ if VolumeNotFoundPattern.MatchString(err.Error()) {+ glog.Warningf("skipping reading %s: %v", hourMinuteEntry.FullPath, err)+ continue+ }return lastTsNs, isDone, fmt.Errorf("reading %s: %v", hourMinuteEntry.FullPath, err)}chunkedFileReader.Close()