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
fix possible EOF problem
Chris Lu4598473251a8
diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.goindex 372d742eaf..c6637259d5 100644--- a/weed/filesys/filehandle.go+++ b/weed/filesys/filehandle.go@@ -3,6 +3,7 @@ package filesysimport ("context""fmt"+ "io""math""net/http""time"@@ -98,6 +99,10 @@ func (fh *FileHandle) readFromChunks(buff []byte, offset int64) (int64, error) {totalRead, err := fh.f.reader.ReadAt(buff, offset)+ if err == io.EOF {+ err = nil+ }+if err != nil {glog.Errorf("file handle read %s: %v", fh.f.fullpath(), err)}