From 42e2c872cd092e6461bd36489cc25355730550f8 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Thu, 19 Nov 2026 14:54:58 -0800 Subject: [PATCH] test: apply stage geometry to the cut memory arm --- .../frontend/durable/provider_initial_memory_linux_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/seaweed-block/core/frontend/durable/provider_initial_memory_linux_test.go b/seaweed-block/core/frontend/durable/provider_initial_memory_linux_test.go index 1921653650..d7c5f323ed 100644 --- a/seaweed-block/core/frontend/durable/provider_initial_memory_linux_test.go +++ b/seaweed-block/core/frontend/durable/provider_initial_memory_linux_test.go @@ -242,7 +242,11 @@ func TestWALStoreChunk_InitialWriteAnonymousMemory(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute) defer cancel() r := &memoryDiskRemote{MemChunkRemote: storage.NewMemChunkRemote(), dir: t.TempDir(), hashes: make(map[string][32]byte)} - p, err := durable.NewDurableProvider(durable.ProviderConfig{Impl: durable.ImplWALStoreChunk, StorageRoot: t.TempDir(), BlockSize: 4096, NumBlocks: 1 << 18, ChunkBlocks: 1024, ChunkCaptureInterval: 0, ChunkRemoteFor: func(string) (storage.ChunkRemote, error) { return r, nil }}, v1View()) + cfg := durable.ProviderConfig{Impl: durable.ImplWALStoreChunk, StorageRoot: t.TempDir(), BlockSize: 4096, NumBlocks: 1 << 18, ChunkBlocks: 1024, ChunkCaptureInterval: 0, ChunkRemoteFor: func(string) (storage.ChunkRemote, error) { return r, nil }} + if os.Getenv("SWBLOCK_MEMORY_STAGE") != "" { + cfg.ChunkDirtyThreshold = 64 + } + p, err := durable.NewDurableProvider(cfg, v1View()) if err != nil { t.Fatal(err) }