Skip to content

Commit

Permalink
[fix](regression) fix unstable insert_p2/txn_insert_with_schema_chang…
Browse files Browse the repository at this point in the history
…e and test_group_commit_interval_ms_property (#40097)
  • Loading branch information
mymeiyi authored Sep 2, 2024
1 parent 0e5f166 commit 7c4516e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ suite("test_group_commit_interval_ms_property") {

def msg1 = group_commit_insert """insert into ${test_table} values(1,1); """, 1

Thread.sleep(8000);
Thread.sleep(2000);

def msg2 = group_commit_insert """insert into ${test_table} values(2,2) """, 1

Expand All @@ -87,7 +87,7 @@ suite("test_group_commit_interval_ms_property") {

def msg3 = group_commit_insert """insert into ${test_table} values(3,3); """, 1

Thread.sleep(2000);
Thread.sleep(8000);

def msg4 = group_commit_insert """insert into ${test_table} values(4,4); """, 1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ suite("txn_insert_with_schema_change") {
sql "use ${dbName};"
def last_state = ""
while (true) {
sleep(2000)
sleep(4000)
def state = sql """ show alter table column where tablename = "${tName}" order by CreateTime desc limit 1"""
logger.info("alter table state: ${state}")
last_state = state[0][9]
if (state.size() > 0 && last_state == job_state) {
return
}
retry++
if (retry >= 10 || last_state == "FINISHED" || last_state == "CANCELLED") {
if (retry >= 60 || last_state == "FINISHED" || last_state == "CANCELLED") {
break
}
}
Expand Down

0 comments on commit 7c4516e

Please sign in to comment.