This is an automated email from the ASF dual-hosted git repository. panxiaolei pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new 9c72248d3f7 [Fix](testcase) Fix test failure in forced multi replica environment (#39549) 9c72248d3f7 is described below commit 9c72248d3f7b4beb25ef82a1b0a7f9f36ad035dd Author: zclllhhjj <zhaochan...@selectdb.com> AuthorDate: Tue Aug 20 10:58:07 2024 +0800 [Fix](testcase) Fix test failure in forced multi replica environment (#39549) ## Proposed changes make checking of tablets number considering replication number --- .../auto_partition/test_auto_partition_behavior.groovy | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/regression-test/suites/partition_p0/auto_partition/test_auto_partition_behavior.groovy b/regression-test/suites/partition_p0/auto_partition/test_auto_partition_behavior.groovy index 73fcc4e9a3b..4c3f184e332 100644 --- a/regression-test/suites/partition_p0/auto_partition/test_auto_partition_behavior.groovy +++ b/regression-test/suites/partition_p0/auto_partition/test_auto_partition_behavior.groovy @@ -410,6 +410,7 @@ suite("test_auto_partition_behavior") { } sql "set experimental_enable_nereids_planner=true;" + sql " drop table if exists test_change " sql """ create table test_change( @@ -421,11 +422,14 @@ suite("test_auto_partition_behavior") { DISTRIBUTED BY HASH(`k0`) BUCKETS 2 properties("replication_num" = "1"); """ + def replicaNum = get_table_replica_num("test_change") + logger.info("get table replica num: " + replicaNum) + sql """ insert into test_change values ("20201212"); """ def part_result = sql " show tablets from test_change " - assertEquals(part_result.size, 2) + assertEquals(part_result.size, 2 * replicaNum) sql """ ALTER TABLE test_change MODIFY DISTRIBUTION DISTRIBUTED BY HASH(k0) BUCKETS 50; """ sql """ insert into test_change values ("20001212"); """ part_result = sql " show tablets from test_change " - assertEquals(part_result.size, 52) + assertEquals(part_result.size, 52 * replicaNum) } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org