From 9c64b8fc039e779148c03a00d3338d76ab887962 Mon Sep 17 00:00:00 2001 From: meiyi Date: Fri, 22 Nov 2024 19:42:47 +0800 Subject: [PATCH] [fix](regression) fix txn insert case (#44395) --- regression-test/suites/insert_p0/insert_with_null.groovy | 5 +++++ .../suites/insert_p0/transaction/txn_insert.groovy | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/regression-test/suites/insert_p0/insert_with_null.groovy b/regression-test/suites/insert_p0/insert_with_null.groovy index 19e49a749cf127..b89d642e33ba15 100644 --- a/regression-test/suites/insert_p0/insert_with_null.groovy +++ b/regression-test/suites/insert_p0/insert_with_null.groovy @@ -35,6 +35,11 @@ suite("insert_with_null") { ); """ + sql "ADMIN SET FRONTEND CONFIG ('commit_timeout_second' = '100')" + onFinish { + sql "ADMIN SET FRONTEND CONFIG ('commit_timeout_second' = '30')" + } + def getRowCount = { expectedRowCount -> def retry = 0 while (retry < 30) { diff --git a/regression-test/suites/insert_p0/transaction/txn_insert.groovy b/regression-test/suites/insert_p0/transaction/txn_insert.groovy index 9459297a00b325..6653c05740e3b1 100644 --- a/regression-test/suites/insert_p0/transaction/txn_insert.groovy +++ b/regression-test/suites/insert_p0/transaction/txn_insert.groovy @@ -42,6 +42,11 @@ suite("txn_insert") { return null } + sql "ADMIN SET FRONTEND CONFIG ('commit_timeout_second' = '100')" + onFinish { + sql "ADMIN SET FRONTEND CONFIG ('commit_timeout_second' = '30')" + } + for (def use_nereids_planner : [/*false,*/ true]) { sql " SET enable_nereids_planner = $use_nereids_planner; "