From 5c2bfe7ec06c683cbd705382beea2c0c53acf42a Mon Sep 17 00:00:00 2001 From: abmdocrt Date: Mon, 16 Dec 2024 16:14:32 +0800 Subject: [PATCH] [Fix](test) Fix cumu compaction with delete case fail (#45442) After https://github.com/apache/doris/pull/44576, defining global variables in test groovy files is disabled. --- .../compaction/test_cumu_compaction_with_delete.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/regression-test/suites/compaction/test_cumu_compaction_with_delete.groovy b/regression-test/suites/compaction/test_cumu_compaction_with_delete.groovy index 7c6be0b177ce1e..05ab96a628a7ec 100644 --- a/regression-test/suites/compaction/test_cumu_compaction_with_delete.groovy +++ b/regression-test/suites/compaction/test_cumu_compaction_with_delete.groovy @@ -50,7 +50,7 @@ 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)){ @@ -58,7 +58,7 @@ suite("test_cumu_compaction_with_delete") { } 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) @@ -99,7 +99,7 @@ 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)){ @@ -107,7 +107,7 @@ suite("test_cumu_compaction_with_delete") { } 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)