Skip to content

Commit

Permalink
[opt](test) Make the case stable. apache#44195 (apache#45638)
Browse files Browse the repository at this point in the history
  • Loading branch information
csun5285 authored Dec 19, 2024
1 parent 55e5e69 commit 299bb87
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import org.codehaus.groovy.runtime.IOGroovyMethods

suite("test_single_compaction_with_variant_inverted", "p2") {
suite("test_single_compaction_with_variant_inverted", "p2, nonConcurrent") {
def tableName = "test_single_compaction_with_variant_inverted"

def calc_file_crc_on_tablet = { ip, port, tablet ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ suite("test_variant_bloom_filter", "nonConcurrent") {
getBackendIpHttpPort(backendId_to_backendIP, backendId_to_backendHttpPort);
def tablets = sql_return_maparray """ show tablets from ${index_table}; """

int beforeSegmentCount = 0

for (def tablet in tablets) {
int beforeSegmentCount = 0
String tablet_id = tablet.TabletId
(code, out, err) = curl("GET", tablet.CompactionStatus)
logger.info("Show tablets status: code=" + code + ", out=" + out + ", err=" + err)
Expand All @@ -83,8 +84,8 @@ suite("test_variant_bloom_filter", "nonConcurrent") {
for (String rowset in (List<String>) tabletJson.rowsets) {
beforeSegmentCount += Integer.parseInt(rowset.split(" ")[1])
}
assertEquals(beforeSegmentCount, 5)
}
assertEquals(beforeSegmentCount, 5)

// trigger compactions for all tablets in ${tableName}
for (def tablet in tablets) {
Expand All @@ -111,8 +112,8 @@ suite("test_variant_bloom_filter", "nonConcurrent") {
});
}

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)
Expand All @@ -123,8 +124,9 @@ suite("test_variant_bloom_filter", "nonConcurrent") {
logger.info("rowset is: " + rowset)
afterSegmentCount += Integer.parseInt(rowset.split(" ")[1])
}
assertEquals(afterSegmentCount, 1)
}
assertEquals(afterSegmentCount, 1)


try {
GetDebugPoint().enableDebugPointForAllBEs("bloom_filter_must_filter_data")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.

suite("test_variant_index_format_v1", "p2") {
suite("test_variant_index_format_v1", "p2, nonConcurrent") {
def calc_file_crc_on_tablet = { ip, port, tablet ->
return curl("GET", String.format("http://%s:%s/api/calc_crc?tablet_id=%s", ip, port, tablet))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// /testing/trino-product-tests/src/main/resources/sql-tests/testcases
// and modified by Doris.

suite("test_single_replica_load", "p2") {
suite("test_single_replica_load", "p2, nonConcurrent") {

def load_json_data = {table_name, file_name ->
// load the json data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.

suite("regression_test_variant_var_index", "p0"){
suite("regression_test_variant_var_index", "p0, nonConcurrent"){
def table_name = "var_index"
sql "DROP TABLE IF EXISTS var_index"
sql """
Expand Down Expand Up @@ -82,6 +82,7 @@ suite("regression_test_variant_var_index", "p0"){
}

sql """ set disable_inverted_index_v1_for_variant = false """
sql "DROP TABLE IF EXISTS var_index"
sql """
CREATE TABLE IF NOT EXISTS var_index (
k bigint,
Expand Down

0 comments on commit 299bb87

Please sign in to comment.