From 7bb263234ab9a8e8101437e2fbad97f147c35a10 Mon Sep 17 00:00:00 2001 From: GreatRiver <14086886+LeftHandCold@users.noreply.github.com> Date: Tue, 5 Nov 2024 16:49:25 +0800 Subject: [PATCH] Fix TestAppendAndGC (#19794) After judging that the WAL has no Pendding LSN, the merge is executed again, so an exception is thrown. The merge needs to be closed in this case. Approved by: @XuPeng-SH --- pkg/vm/engine/tae/db/test/db_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/vm/engine/tae/db/test/db_test.go b/pkg/vm/engine/tae/db/test/db_test.go index 4e92c55a8a85..530be41acd5c 100644 --- a/pkg/vm/engine/tae/db/test/db_test.go +++ b/pkg/vm/engine/tae/db/test/db_test.go @@ -6360,6 +6360,10 @@ func TestAppendAndGC(t *testing.T) { opts := new(options.Options) opts = config.WithQuickScanAndCKPOpts(opts) options.WithDisableGCCheckpoint()(opts) + common.RuntimeMaxMergeObjN.Store(0) + common.RuntimeOsizeRowsQualified.Store(0) + common.RuntimeMaxObjOsize.Store(0) + tae := testutil.NewTestEngine(ctx, ModuleName, t, opts) defer tae.Close() db := tae.DB