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.

add logs

Chris Luc2797cc6dea4
diff --git a/weed/filer2/reader_at.go b/weed/filer2/reader_at.go
index 381e761272..11a80443f2 100644
--- a/weed/filer2/reader_at.go
+++ b/weed/filer2/reader_at.go
@@ -129,8 +129,8 @@ func (c *ChunkReadAt) fetchChunkData(chunkView *ChunkView) (data []byte, err err
}
if int64(len(chunkData)) < chunkView.Offset+int64(chunkView.Size) {
- glog.Errorf("unexpected larger cached:%v chunk [%d,%d) than %d", hasDataInCache, chunkView.Offset, chunkView.Offset+int64(chunkView.Size), len(chunkData))
- return nil, fmt.Errorf("unexpected larger cached:%v chunk [%d,%d) than %d", hasDataInCache, chunkView.Offset, chunkView.Offset+int64(chunkView.Size), len(chunkData))
+ glog.Errorf("unexpected larger cached:%v chunk %s [%d,%d) than %d", hasDataInCache, chunkView.FileId, chunkView.Offset, chunkView.Offset+int64(chunkView.Size), len(chunkData))
+ return nil, fmt.Errorf("unexpected larger cached:%v chunk %s [%d,%d) than %d", hasDataInCache, chunkView.FileId, chunkView.Offset, chunkView.Offset+int64(chunkView.Size), len(chunkData))
}
data = chunkData[chunkView.Offset : chunkView.Offset+int64(chunkView.Size)]
@@ -154,7 +154,7 @@ func (c *ChunkReadAt) doFetchFullChunkData(fileId string, cipherKey []byte, isGz
buffer.Write(data)
})
if err != nil {
- glog.V(1).Infof("read %s failed, err: %v", fileId, err)
+ glog.V(0).Infof("read %s failed, err: %v", fileId, err)
return nil, err
}