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 tests
Chris Lu8c9e6eaacd8e
diff --git a/weed/filer2/filechunks.go b/weed/filer2/filechunks.goindex 1d546bad0d..5d1d5fbe70 100644--- a/weed/filer2/filechunks.go+++ b/weed/filer2/filechunks.go@@ -143,7 +143,7 @@ func ViewFromVisibleIntervals(visibles []VisibleInterval, offset int64, size intFileId: chunk.fileId,Offset: chunkStart-chunk.start,Size: uint64(chunkStop - chunkStart),- LogicOffset: chunk.start,+ LogicOffset: chunkStart,ChunkSize: chunk.chunkSize,CipherKey: chunk.cipherKey,IsGzipped: chunk.isGzipped,diff --git a/weed/filer2/filechunks_test.go b/weed/filer2/filechunks_test.goindex c1b0427a4a..2390d4fb29 100644--- a/weed/filer2/filechunks_test.go+++ b/weed/filer2/filechunks_test.go@@ -290,7 +290,7 @@ func TestChunksReading(t *testing.T) {Size: 400,Expected: []*ChunkView{{Offset: 0, Size: 200, FileId: "asdf", LogicOffset: 0},- // {Offset: 0, Size: 150, FileId: "xxxx"}, // missing intervals should not happen+ {Offset: 0, Size: 150, FileId: "xxxx", LogicOffset: 250},},},// case 5: updates overwrite full chunks