Skip to content

Commit

Permalink
[Fix](test) Fix cumu compaction with delete case fail (apache#45442)
Browse files Browse the repository at this point in the history
After apache#44576, defining global
variables in test groovy files is disabled.
  • Loading branch information
Yukang-Lian authored Dec 16, 2024
1 parent 8cba7a2 commit 5c2bfe7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ suite("test_cumu_compaction_with_delete") {
sql """ delete from ${tableName} where user_id = 1"""
}

now = System.currentTimeMillis()
def now = System.currentTimeMillis()

while(true){
if(check_cumu_point(100)){
break;
}
Thread.sleep(1000)
}
time_diff = System.currentTimeMillis() - now
def time_diff = System.currentTimeMillis() - now
logger.info("time_diff:" + time_diff)
assertTrue(time_diff<200*1000)

Expand Down Expand Up @@ -99,15 +99,15 @@ suite("test_cumu_compaction_with_delete") {
sql """ delete from ${tableName} where user_id = 1"""
}

now = System.currentTimeMillis()
def now = System.currentTimeMillis()

while(true){
if(check_cumu_point(100)){
break;
}
Thread.sleep(1000)
}
time_diff = System.currentTimeMillis() - now
def time_diff = System.currentTimeMillis() - now
logger.info("time_diff:" + time_diff)
assertTrue(time_diff>=200*1000)

Expand Down

0 comments on commit 5c2bfe7

Please sign in to comment.