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
log_buffer: cap the shared-snapshot race test's heap (#10281)
Chris Lufd5a6ff42761
diff --git a/weed/util/log_buffer/shared_snapshot_test.go b/weed/util/log_buffer/shared_snapshot_test.goindex 370f9a82cc..35797c9e74 100644--- a/weed/util/log_buffer/shared_snapshot_test.go+++ b/weed/util/log_buffer/shared_snapshot_test.go@@ -2,6 +2,7 @@ package log_bufferimport ("fmt"+ "runtime/debug""sync""testing""time"@@ -85,6 +86,12 @@ func TestSharedSnapshotSurvivesRecycle(t *testing.T) {// and recycling windows. Every delivered entry must unmarshal cleanly with the// expected payload — corruption here means a reader saw recycled bytes.func TestSharedSnapshotConcurrentIntegrity(t *testing.T) {+ // The writer below is deliberately unthrottled, so transient marshal garbage+ // scales with host speed; on linux/386 a fast runner can hit the 4GB+ // address-space ceiling. Cap the heap so the GC paces the writer instead.+ prevLimit := debug.SetMemoryLimit(1 << 30)+ defer debug.SetMemoryLimit(prevLimit)+lb := NewLogBuffer("test", time.Hour, func(*LogBuffer, time.Time, time.Time, []byte, int64, int64) {}, nil, nil)defer lb.ShutdownLogBuffer()