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
more logs
chrislu0a3f95ca01a3
diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.goindex 619d9a2265..8606ac0d2d 100644--- a/weed/filesys/filehandle.go+++ b/weed/filesys/filehandle.go@@ -163,7 +163,7 @@ func (fh *FileHandle) readFromChunks(buff []byte, offset int64) (int64, error) {glog.Errorf("file handle read %s: %v", fileFullPath, err)}- // glog.V(4).Infof("file handle read %s [%d,%d] %d : %v", fileFullPath, offset, offset+int64(totalRead), totalRead, err)+ glog.V(4).Infof("file handle read %s [%d,%d] %d : %v", fileFullPath, offset, offset+int64(totalRead), totalRead, err)return int64(totalRead), err}diff --git a/weed/filesys/page_writer/upload_pipeline.go b/weed/filesys/page_writer/upload_pipeline.goindex 83e5c8b60a..9f459c11e0 100644--- a/weed/filesys/page_writer/upload_pipeline.go+++ b/weed/filesys/page_writer/upload_pipeline.go@@ -81,6 +81,7 @@ func (cw *UploadPipeline) MaybeReadDataAt(p []byte, off int64) (maxStop int64) {cw.sealedChunksLock.Unlock()if found {maxStop = readMemChunk(sealedChunk.chunk, p, off, logicChunkIndex, cw.ChunkSize)+ glog.V(4).Infof("%s read sealed memchunk [%d,%d)", cw.filepath, off, maxStop)sealedChunk.FreeReference(fmt.Sprintf("%s finish reading chunk %d", cw.filepath, logicChunkIndex))}@@ -91,7 +92,9 @@ func (cw *UploadPipeline) MaybeReadDataAt(p []byte, off int64) (maxStop int64) {if !found {return}- maxStop = max(maxStop, readMemChunk(writableChunk, p, off, logicChunkIndex, cw.ChunkSize))+ writableMaxStop := readMemChunk(writableChunk, p, off, logicChunkIndex, cw.ChunkSize)+ glog.V(4).Infof("%s read writable memchunk [%d,%d)", cw.filepath, off, writableMaxStop)+ maxStop = max(maxStop, writableMaxStop)return}