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.

skip file with invalid format

chrislu62ed2366f330
diff --git a/weed/filer/filer_notify_read.go b/weed/filer/filer_notify_read.go
index cc24bf9dcf..d8b1d38ae0 100644
--- a/weed/filer/filer_notify_read.go
+++ b/weed/filer/filer_notify_read.go
@@ -221,6 +221,10 @@ func (c *LogFileEntryCollector) collectMore(v *OrderedLogVisitor) (err error) {
continue
}
filerId := getFilerId(hourMinuteEntry.Name())
+ if filerId == "" {
+ glog.Warningf("Invalid log file name format: %s", hourMinuteEntry.Name())
+ continue // Skip files with invalid format
+ }
iter, found := v.perFilerIteratorMap[filerId]
if !found {
iter = newLogFileQueueIterator(c.f.MasterClient, util.NewQueue[*LogFileEntry](), c.startTsNs, c.stopTsNs)