Skip to content

Commit b71b35e

Browse files
branch-3.0: [fix](regression) fix txn insert case #44395 (#44492)
Cherry-picked from #44395 Co-authored-by: meiyi <[email protected]>
1 parent e1b8296 commit b71b35e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

regression-test/suites/insert_p0/insert_with_null.groovy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ suite("insert_with_null") {
3535
);
3636
"""
3737

38+
sql "ADMIN SET FRONTEND CONFIG ('commit_timeout_second' = '100')"
39+
onFinish {
40+
sql "ADMIN SET FRONTEND CONFIG ('commit_timeout_second' = '30')"
41+
}
42+
3843
def getRowCount = { expectedRowCount ->
3944
def retry = 0
4045
while (retry < 30) {

regression-test/suites/insert_p0/transaction/txn_insert.groovy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ suite("txn_insert") {
4242
return null
4343
}
4444

45+
sql "ADMIN SET FRONTEND CONFIG ('commit_timeout_second' = '100')"
46+
onFinish {
47+
sql "ADMIN SET FRONTEND CONFIG ('commit_timeout_second' = '30')"
48+
}
49+
4550
for (def use_nereids_planner : [/*false,*/ true]) {
4651
sql " SET enable_nereids_planner = $use_nereids_planner; "
4752

0 commit comments

Comments
 (0)