From 635aa6c7d1d6bcb22f630f63cb7d31d68ae18f8d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 10:06:25 +0800 Subject: [PATCH] branch-3.0: [opt](test) Make the case stable #44910 (#45007) Cherry-picked from #44910 Co-authored-by: Sun Chenyang --- .../test_index_compaction_dup_keys_arr.groovy | 2 +- .../array_contains/test_index_compaction_null_arr.groovy | 2 +- .../test_index_compaction_unique_keys_arr.groovy | 2 +- .../test_index_compaction_empty_segments.groovy | 7 ++++--- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/regression-test/suites/inverted_index_p0/array_contains/test_index_compaction_dup_keys_arr.groovy b/regression-test/suites/inverted_index_p0/array_contains/test_index_compaction_dup_keys_arr.groovy index ba30c9f044b7be..c7d41e68cdd112 100644 --- a/regression-test/suites/inverted_index_p0/array_contains/test_index_compaction_dup_keys_arr.groovy +++ b/regression-test/suites/inverted_index_p0/array_contains/test_index_compaction_dup_keys_arr.groovy @@ -17,7 +17,7 @@ import org.codehaus.groovy.runtime.IOGroovyMethods -suite("test_index_compaction_dup_keys_array", "array_contains_inverted_index") { +suite("test_index_compaction_dup_keys_array", "array_contains_inverted_index, nonConcurrent") { // here some variable to control inverted index query sql """ set enable_profile=true""" sql """ set enable_pipeline_x_engine=true;""" diff --git a/regression-test/suites/inverted_index_p0/array_contains/test_index_compaction_null_arr.groovy b/regression-test/suites/inverted_index_p0/array_contains/test_index_compaction_null_arr.groovy index b33a197bd32170..dfc38998c4d4bc 100644 --- a/regression-test/suites/inverted_index_p0/array_contains/test_index_compaction_null_arr.groovy +++ b/regression-test/suites/inverted_index_p0/array_contains/test_index_compaction_null_arr.groovy @@ -17,7 +17,7 @@ import org.codehaus.groovy.runtime.IOGroovyMethods -suite("test_index_compaction_null_arr", "array_contains_inverted_index") { +suite("test_index_compaction_null_arr", "array_contains_inverted_index, nonConcurrent") { // here some variable to control inverted index query sql """ set enable_profile=true""" sql """ set enable_pipeline_x_engine=true;""" diff --git a/regression-test/suites/inverted_index_p0/array_contains/test_index_compaction_unique_keys_arr.groovy b/regression-test/suites/inverted_index_p0/array_contains/test_index_compaction_unique_keys_arr.groovy index f8bf4752a2a65e..19162463707c40 100644 --- a/regression-test/suites/inverted_index_p0/array_contains/test_index_compaction_unique_keys_arr.groovy +++ b/regression-test/suites/inverted_index_p0/array_contains/test_index_compaction_unique_keys_arr.groovy @@ -17,7 +17,7 @@ import org.codehaus.groovy.runtime.IOGroovyMethods -suite("test_index_compaction_unique_keys_arr", "array_contains_inverted_index") { +suite("test_index_compaction_unique_keys_arr", "array_contains_inverted_index, nonConcurrent") { // here some variable to control inverted index query sql """ set enable_profile=true""" sql """ set enable_pipeline_x_engine=true;""" diff --git a/regression-test/suites/inverted_index_p0/index_compaction/test_index_compaction_empty_segments.groovy b/regression-test/suites/inverted_index_p0/index_compaction/test_index_compaction_empty_segments.groovy index 46126299bf5b88..1c70c9e8e5027b 100644 --- a/regression-test/suites/inverted_index_p0/index_compaction/test_index_compaction_empty_segments.groovy +++ b/regression-test/suites/inverted_index_p0/index_compaction/test_index_compaction_empty_segments.groovy @@ -19,7 +19,7 @@ import java.util.concurrent.Executors import java.util.concurrent.TimeUnit import org.awaitility.Awaitility -suite("test_index_compaction_empty_segments", "p0") { +suite("test_index_compaction_empty_segments", "p0, nonConcurrent") { def compaction_table_name = "test_index_compaction_empty_segments" def backendId_to_backendIP = [:] @@ -82,8 +82,9 @@ suite("test_index_compaction_empty_segments", "p0") { }); } - int afterSegmentCount = 0 + for (def tablet in tablets) { + int afterSegmentCount = 0 String tablet_id = tablet.TabletId (code, out, err) = curl("GET", tablet.CompactionStatus) logger.info("Show tablets status: code=" + code + ", out=" + out + ", err=" + err) @@ -94,6 +95,6 @@ suite("test_index_compaction_empty_segments", "p0") { logger.info("rowset is: " + rowset) afterSegmentCount += Integer.parseInt(rowset.split(" ")[1]) } + assertEquals(afterSegmentCount, 0) } - assertEquals(afterSegmentCount, 0) }