This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 9275396e0d9 [Fix](testcase) Fix test failure in forced multi replica
environment (#39549)
9275396e0d9 is described below
commit 9275396e0d93ba9bd73e4e2ba10634d23e62e51d
Author: zclllhhjj <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]