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.

filer: shrink zip spool threshold in tests to fix 32-bit OOM (#11801)

Chris Lue6633146d8ec
diff --git a/weed/s3api/s3lifecycle/dailyrun/replay_view_test.go b/weed/s3api/s3lifecycle/dailyrun/replay_view_test.go
index 8adb1da419..1dc3475fc3 100644
--- a/weed/s3api/s3lifecycle/dailyrun/replay_view_test.go
+++ b/weed/s3api/s3lifecycle/dailyrun/replay_view_test.go
@@ -60,7 +60,7 @@ func TestRunShard_WalkBoundRuleDoesNotPinCursor(t *testing.T) {
close(events)
client := &recordingClient{}
cfg := Config{Persister: p, Client: client, Lister: stubSiblingLister{}, RetentionWindow: retention}
- require.NoError(t, runShard(context.Background(), cfg, snap, runNow, 0, events))
+ require.NoError(t, runShard(context.Background(), cfg, snap, runNow, 0, events, nil))
assert.ElementsMatch(t, []string{"short/a", "short/b"}, client.seenObjects())
got, _, _ := p.Load(context.Background(), 0)
assert.Equal(t, last.TsNs, got.TsNs, "cursor must advance past the walk-bound object's PUT")
diff --git a/weed/s3api/s3lifecycle/dailyrun/run_bounded_test.go b/weed/s3api/s3lifecycle/dailyrun/run_bounded_test.go
index 377f3444ac..ab241f1144 100644
--- a/weed/s3api/s3lifecycle/dailyrun/run_bounded_test.go
+++ b/weed/s3api/s3lifecycle/dailyrun/run_bounded_test.go
@@ -225,7 +225,7 @@ func TestValidate_RejectsRetentionWindowWithoutWalker(t *testing.T) {
cfg := validatableConfig()
cfg.RetentionWindow = 24 * time.Hour
require.ErrorContains(t, validate(cfg), "RetentionWindow")
- cfg.Walker = func(context.Context, *engine.Snapshot, int) error { return nil }
+ cfg.Walker = func(context.Context, *engine.Snapshot, []int) error { return nil }
require.NoError(t, validate(cfg))
cfg.Walker = nil
cfg.RetentionWindow = 0