This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new 245b0dd6168 branch-4.1: [fix](test) skip 
force_olap_table_replication_num check in cloud mode for show replica dist 
#64374 (#64843)
245b0dd6168 is described below

commit 245b0dd61686884c92331ddea216d2cbaed80a9f
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Jun 29 11:47:03 2026 +0800

    branch-4.1: [fix](test) skip force_olap_table_replication_num check in 
cloud mode for show replica dist #64374 (#64843)
    
    Cherry-picked from #64374
    
    Co-authored-by: Xin Liao <[email protected]>
---
 .../nereids_p0/show/test_nereids_show_replica_dist.groovy    | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git 
a/regression-test/suites/nereids_p0/show/test_nereids_show_replica_dist.groovy 
b/regression-test/suites/nereids_p0/show/test_nereids_show_replica_dist.groovy
index 1cd21d1ea01..7d1e612753c 100644
--- 
a/regression-test/suites/nereids_p0/show/test_nereids_show_replica_dist.groovy
+++ 
b/regression-test/suites/nereids_p0/show/test_nereids_show_replica_dist.groovy
@@ -61,9 +61,15 @@ suite("test_nereids_show_replica_dist") {
     }
     
     def replication_num = 1
-    def forceReplicaNum = 
getFeConfig('force_olap_table_replication_num').toInteger()
-    if (forceReplicaNum > 0) {
-        replication_num = forceReplicaNum
+    // In cloud mode the data is stored once on shared storage, so each tablet 
always
+    // has a single replica regardless of force_olap_table_replication_num. 
The cloud
+    // CloudPropertyAnalyzer unconditionally rewrites replication_num back to 
1, so the
+    // forced replication num must not be applied to the expected value here.
+    if (!isCloudMode()) {
+        def forceReplicaNum = 
getFeConfig('force_olap_table_replication_num').toInteger()
+        if (forceReplicaNum > 0) {
+            replication_num = forceReplicaNum
+        }
     }
 
     assertEquals(replication_num, queryReplicaCount("p3"))   


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to