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
mount: model the refused async flush as a replaced file in recovery tests (#12628)
Chris Lu68b6a2ed0829
diff --git a/weed/mount/content_flush_recovery_test.go b/weed/mount/content_flush_recovery_test.goindex c593dd8bdb..ca4f582401 100644--- a/weed/mount/content_flush_recovery_test.go+++ b/weed/mount/content_flush_recovery_test.go@@ -40,7 +40,9 @@ func committedContentHandle(t *testing.T, peer bool) (*WFS, *FileHandle, *commitbase.CommitTsNs = 100current := proto.Clone(base).(*filer_pb.Entry)if peer {- current.Chunks = append(current.Chunks, flushConditionEntry(1, 2).Chunks[1])+ // A peer replaced the file: the flush cannot merge into it.+ current = flushConditionEntry(4)+ current.Attributes.Inode = 99current.CommitTsNs = 101}s := &committedContentFiler{contentFlushConditionFiler: contentFlushConditionFiler{entry: current}}